mirror of
https://github.com/tiennm99/loldle.git
synced 2026-08-30 18:22:23 +00:00
sync-data.yml now writes static/champions.json. This is the edit that had to land with the deletion of public/: the workflow reports success regardless of which path it writes, so a miss would have left the weekly sync green while the live game 404'd on data load. deploy.yml publishes build/ and passes BASE_PATH. Adds ci.yml, which runs test, lint, and build on pull_request and pushes to main -- the repo had no PR-triggered workflow before, so 'green before merge' was previously unenforceable. Deletes app/, components/, lib/, public/, next.config.mjs and postcss.config.mjs, drops the Next and React dependencies, and swaps ESLint onto eslint-plugin-svelte. sharp and unrs-resolver left pnpm's allowBuilds because both arrived with Next and pnpm why now reports no dependents.
37 lines
669 B
YAML
37 lines
669 B
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
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: pnpm/action-setup@v6
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '24'
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm install --frozen-lockfile --ignore-scripts
|
|
|
|
- run: pnpm test
|
|
|
|
- run: pnpm lint
|
|
|
|
# No BASE_PATH here: this checks that the app compiles. The base-path
|
|
# behaviour is verified against a real preview before release.
|
|
- run: pnpm build
|