Skip to content
Prev Previous commit
Next Next commit
Update and clean up github actions
  • Loading branch information
aomarks committed Oct 13, 2021
commit ba6508e61a5d810414d6afbdf7737f31b83bd202
82 changes: 0 additions & 82 deletions .github/workflows/build.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/check-links-external.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check external links

on: [push, pull_request]

jobs:
check-links-external:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'

- run: npm ci
- run: npm run bootstrap
- run: npm run build
- run: npm run test:links:external
20 changes: 20 additions & 0 deletions .github/workflows/check-links-internal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check internal links

on: [push, pull_request]

jobs:
check-links-internal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'

- run: npm ci
- run: npm run bootstrap
- run: npm run build
- run: npm run test:links:redirects
- run: npm run test:links:internal
41 changes: 0 additions & 41 deletions .github/workflows/generate-goldens.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Integration tests

on: [push, pull_request]

jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'

- run: npm ci
- run: npx playwright install-deps
- run: npm run bootstrap
- run: npm run build

- id: test
run: npm run test:integration

- if: ${{ always() && steps.test.outcome == 'failure' }}
run: npm run test:integration:update-golden-screenshots

- if: ${{ always() && steps.test.outcome == 'failure' }}
Comment on lines +24 to +27
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant!

uses: actions/upload-artifact@v2
with:
name: golden-results
path: tests/**/**.png
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config: PlaywrightTestConfig = {
// explicitly with either:
// * Github Action: "Artifacts / Download link for updated screenshots" for
// committing the snapshot to the repository.
// * `npm run test:update-golden-screenshots` for local testing.
// * `npm run test:integration:update-golden-screenshots` for local testing.
updateSnapshots: 'none',
};
export default config;