mirror of
https://github.com/tiennm99/vngeoguessr.git
synced 2026-10-14 02:16:41 +00:00
checkout, setup-node and upload-artifact v4 still run on Node 20, which GitHub deprecates and forces onto Node 24 with a warning on every run. v7 of each runs on Node 24; nothing between v4 and v7 changes the inputs these workflows use.
32 lines
740 B
YAML
32 lines
740 B
YAML
# The three gates a change has to pass, run on every push and pull request.
|
|
# Needs no secrets: every page that touches Redis, Postgres or Mapillary is
|
|
# rendered on demand, so compiling the app never opens a connection.
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# A newer push to the same branch supersedes the run still going.
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
- run: npm test
|
|
- run: npm run build:check
|