Don't trigger name updates multiple times on changed tiles #75
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup npm | |
run: npm ci | |
- name: Prebuild | |
run: npm run prebuild | |
- name: Build | |
run: npm run build-prod | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
out/index.html | |
out/main.js.map | |
retention-days: 1 | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup npm | |
run: npm ci | |
- name: Run ESLint | |
run: ./node_modules/.bin/eslint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup npm | |
run: npm ci | |
- name: Run tests | |
run: npm test |