Skip to content

Commit 0537040

Browse files
___COMMIT TO DELETE___
This commit just adds some ci checks to make sure that everything is working as expected when we push stuff on github, it is not part of the workshop and should be removed before the workshop
1 parent d30e695 commit 0537040

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.github/workflows/lint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint & Type Check
2+
on: push
3+
jobs:
4+
test:
5+
timeout-minutes: 60
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-node@v4
10+
with:
11+
node-version: lts/*
12+
- name: Install dependencies
13+
run: npm ci
14+
- name: Run eslint
15+
run: npm run lint
16+
- name: Run typecheck
17+
run: npm run typecheck

.github/workflows/playwright.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Playwright Tests
2+
on: push
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [macos-13, windows-2022, ubuntu-22.04]
9+
node: [18, 20, 21, 22]
10+
runs-on: ${{ matrix.os }}
11+
timeout-minutes: 60
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Install Playwright Browsers
20+
run: npx playwright install --with-deps
21+
- name: Run Playwright tests
22+
run: npx playwright test
23+
- uses: actions/upload-artifact@v4
24+
if: always()
25+
with:
26+
name: playwright-report-${{ matrix.os }}-node_${{ matrix.node}}
27+
path: playwright-report/
28+
retention-days: 30

.github/workflows/vitest.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Vitest workers-library
2+
on: push
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [macos-13, windows-2022, ubuntu-22.04]
9+
node: [18, 20, 21, 22]
10+
runs-on: ${{ matrix.os }}
11+
timeout-minutes: 60
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: build app
20+
run: npm run build
21+
- name: Run Vitest
22+
run: npm run test

0 commit comments

Comments
 (0)