Skip to content

Add Turbolaser Salvo, Colossus, and Nabat Village #3158

Add Turbolaser Salvo, Colossus, and Nabat Village

Add Turbolaser Salvo, Colossus, and Nabat Village #3158

Workflow file for this run

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