Skip to content

Commit

Permalink
Merge pull request #3 from twm/ci/cd
Browse files Browse the repository at this point in the history
Run Playwright in a separate step
  • Loading branch information
twm authored Sep 2, 2024
2 parents e8a4cc2 + 25adeae commit 3f3f6c1
Showing 1 changed file with 25 additions and 10 deletions.
35 changes: 25 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
contents: read

jobs:
test:
Fast:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,6 +29,27 @@ jobs:

- run: npm run test:unit

- run: npm run build

- uses: actions/upload-artifact@v4
with:
name: build
path: build

Slow:
runs-on: ubuntu-latest
needs: [Fast]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
cache-dependency-path: "package-lock.json"

- run: npm install

- run: npx playwright install --with-deps

- run: npm run test:integration
Expand All @@ -39,16 +60,9 @@ jobs:
name: playwright-report
path: playwright-report

- run: npm run build

- uses: actions/upload-artifact@v4
with:
name: build
path: build

publish:
Publish:
runs-on: ubuntu-latest
needs: [test]
needs: [Fast]
if: ${{ !cancelled() && github.ref == 'refs/heads/trunk' }}

permissions:
Expand All @@ -59,6 +73,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: build
path: build

- uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 3f3f6c1

Please sign in to comment.