Skip to content

Commit 5f05e8a

Browse files
committed
chore: add github actions to add automated tests
1 parent 2ab33e3 commit 5f05e8a

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/main.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
project:
18+
[
19+
"angular",
20+
"angular-standalone",
21+
"react-next14-ts",
22+
"react-next15-ts",
23+
"react-vite-ts",
24+
"react-webpack5-js",
25+
"svelte-vite-ts",
26+
"svelte-webpack-ts",
27+
"vue3-vite-ts",
28+
"vue3-webpack-ts",
29+
]
30+
31+
name: Run Component Tests in Projects
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 22
39+
- name: Cypress test
40+
uses: cypress-io/github-action@v6
41+
with:
42+
component: true
43+
working-directory: "${{ matrix.project }}"

0 commit comments

Comments
 (0)