This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
docs: deprecated/unmaintained #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
push: | |
branches: main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 17.x] | |
fail-fast: false | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@18bf8ad2ca49c14cbb28b91346d626ccfb00c518 # v2.1.0 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # v2.5.1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Node.js deps | |
run: npm i | |
- name: Install playwright | |
run: | | |
npx playwright install | |
npx playwright install-deps | |
npx playwright install-deps chromium | |
- name: Run tests | |
run: npm run test:e2e |