Skip to content

Commit 0fcf1e9

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 25c4339 commit 0fcf1e9

File tree

4 files changed

+69
-2
lines changed

4 files changed

+69
-2
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

wrangler.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ binding = "AI"
88

99
[[kv_namespaces]]
1010
binding = "KV"
11-
id = "<namespace-id>"
11+
id = "7a86eeb236c54b5daebdb1366ec9caba"
1212

1313
# Note: if you are not using R2 as part of your implementation
1414
#  you should remove or comment out this binding
1515
# (this bindings is not a problem for local development
1616
#  but deplyoing your application with it would fail)
1717
[[r2_buckets]]
1818
binding = "R2"
19-
bucket_name = "<bucket-name>"
19+
bucket_name = "card-images"

0 commit comments

Comments
 (0)