Skip to content

Commit 585633f

Browse files
committed
update ci
1 parent debb31b commit 585633f

File tree

3 files changed

+65
-3
lines changed

3 files changed

+65
-3
lines changed

.github/workflows/nextjs-pages-ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Next.js Pages CI
2+
on:
3+
push:
4+
branches: ["*"]
5+
paths-ignore:
6+
- "README.md"
7+
- "docs/**"
8+
pull_request:
9+
branches: [master]
10+
paths-ignore:
11+
- "README.md"
12+
- "docs/**"
13+
jobs:
14+
all-cli-checks:
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: ./apps/nextjs-pages
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: lts/*
24+
- name: Set environment variables
25+
run: mv .env.example .env
26+
- name: Install dependencies
27+
run: yarn install
28+
- name: Build application
29+
run: yarn build
30+
- name: Run tests
31+
run: yarn test
32+
- name: Run linter
33+
run: yarn lint
34+
- name: Check types
35+
run: yarn check-types
36+
e2e:
37+
timeout-minutes: 60
38+
runs-on: ubuntu-latest
39+
defaults:
40+
run:
41+
working-directory: ./apps/nextjs-pages
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version: lts/*
47+
- name: Set environment variables
48+
run: mv .env.example-e2e .env
49+
- name: Install dependencies
50+
run: npm install -g yarn && yarn
51+
- name: Install Playwright Browsers
52+
run: yarn playwright install --with-deps
53+
- name: Run Playwright tests
54+
run: yarn test-e2e
55+
- uses: actions/upload-artifact@v4
56+
if: always()
57+
with:
58+
name: playwright-report
59+
path: |
60+
playwright-report/
61+
mocked-db.json
62+
retention-days: 30

.github/workflows/ci.yml renamed to .github/workflows/react-vite-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: React Vite CI
22
on:
33
push:
44
branches: ["*"]
@@ -11,7 +11,7 @@ on:
1111
- "README.md"
1212
- "docs/**"
1313
jobs:
14-
all-cli-check:
14+
all-cli-checks:
1515
runs-on: ubuntu-latest
1616
defaults:
1717
run:

apps/nextjs-pages/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)