Merge pull request #2630 from furkan-bilgin/master #49
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: Page tests | |
on: | |
push: | |
paths: | |
- 'src/pages/**' | |
pull_request: | |
paths: | |
- 'src/pages/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: files | |
continue-on-error: true | |
uses: jitterbit/get-changed-files@v1 | |
with: | |
format: 'json' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Checkout test data | |
uses: actions/checkout@v4 | |
with: | |
repository: MALSync/test_data | |
ref: 'master' | |
path: test/dist/headless | |
- name: Decode | |
run: node decrypt.js | |
working-directory: test/dist/headless | |
- name: Page Tests | |
run: | | |
npm ci | |
npm run test:headless | |
env: | |
CI: true | |
FILES: ${{steps.files.outputs.added_modified}} | |