mirror of
https://github.com/tiennm99/loldle.git
synced 2026-08-30 20:21:41 +00:00
Replace pnpm-lock.yaml with package-lock.json. The three security overrides move from pnpm-workspace.yaml to package.json#overrides, where npm reads them natively. Only the postcss floor is still live; @babel/core and js-yaml left the tree with Next.js but are kept so the declared floors survive if a dependency reintroduces them.
54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: web
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
with:
|
|
package_json_file: web/package.json
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
|
|
- run: npm ci --ignore-scripts
|
|
|
|
- run: npm test
|
|
|
|
- run: npm run lint
|
|
|
|
# No BASE_PATH here: this checks that the app compiles. The base-path
|
|
# behaviour is verified against a real preview before release.
|
|
- run: npm run build
|
|
|
|
scraper:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: data/go.mod
|
|
|
|
- run: go build ./... && go test ./...
|
|
working-directory: data
|