Bunch of cards (set4 bunch11) #3153
Workflow file for this run
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: Pull Request Checks | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- main | |
jobs: | |
lint: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
cache: 'npm' | |
- run: npm install | |
- run: npx eslint --quiet | |
test: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
cache: 'npm' | |
- run: npm install | |
- name: check that card data json version file exists | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "${{ github.workspace }}/card-data-version.txt" | |
fail: true | |
- name: get card data json cache version | |
id: card-data-version | |
run: echo "version=$(cat ${GITHUB_WORKSPACE}/card-data-version.txt)" >> $GITHUB_OUTPUT | |
- name: cache card data json files | |
id: cache-card-data | |
uses: actions/cache@v3 | |
with: | |
path: ./test/json | |
key: ${{ steps.card-data-version.outputs.version }} | |
- if: ${{ steps.cache-card-data.outputs.cache-hit != 'true' }} | |
run: npm run get-cards | |
- run: npm run test-parallel |