chore: build & lint

This commit is contained in:
DarkSky
2022-12-28 00:45:08 +08:00
parent 18c4d135bd
commit 8a8559e1fe
2 changed files with 81 additions and 27 deletions
+9 -8
View File
@@ -70,12 +70,13 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ./packages/app/out
path: ./packages/app/.next
lint:
name: Lint and E2E Test
runs-on: ubuntu-latest
environment: development
needs: build
steps:
- uses: actions/checkout@v2
@@ -105,15 +106,15 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}
- name: Lint
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: artifact
path: packages/app/.next/
- name: Lint & E2E Test
run: |
pnpm lint --max-warnings=0
- name: Install Playwright browsers
run: PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium
- name: E2E Test
run: |
PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium
PLAYWRIGHT_BROWSERS_PATH=0 pnpm test -- --forbid-only
env: