Skip to content

Commit

Permalink
fix(Next): CI to build root
Browse files Browse the repository at this point in the history
  • Loading branch information
danactive committed Apr 7, 2024
1 parent 207c0bf commit 7d92bf0
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"
node-version-file: ".nvmrc"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: next

- name: Lint
run: npm run lint:ci
working-directory: next

typecheck:
name: TypeScript
Expand All @@ -45,16 +42,13 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"
node-version-file: ".nvmrc"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: next

- name: 🔎 Type check
run: npm run typecheck --if-present
working-directory: next

unittest:
name: Jest
Expand All @@ -66,16 +60,13 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"
node-version-file: ".nvmrc"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: next

- name: Unit Test runner
run: npm run test:ci
working-directory: next
e2etest:
name: Playwright
timeout-minutes: 60
Expand All @@ -87,20 +78,16 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version-file: "next/.nvmrc"
node-version-file: ".nvmrc"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
working-directory: next

- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: next

- name: Run Playwright tests
run: npx playwright test
working-directory: next

- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 7d92bf0

Please sign in to comment.