Skip to content

Commit 8b1e556

Browse files
Merge pull request #10 from MikeMcC399/add/github-action
ci: add GitHub Action CI workflow
2 parents f128e74 + 9d22613 commit 8b1e556

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-22.04
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
framework:
18+
["angular","react","svelte","vue"]
19+
20+
name: Test examples
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 18
28+
- name: Cypress test
29+
uses: cypress-io/github-action@v5
30+
with:
31+
component: true
32+
working-directory: "${{ matrix.framework}}/my-awesome-app"

0 commit comments

Comments
 (0)