Skip to content

Merge pull request #48 from GlassBricks/factorio-version-2.0.17 #47

Merge pull request #48 from GlassBricks/factorio-version-2.0.17

Merge pull request #48 from GlassBricks/factorio-version-2.0.17 #47

Workflow file for this run

name: Check code
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
jobs:
check-lint-and-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm run format:check
check-generated-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run clean
- run: npm run generate
- run: git diff --exit-code || (echo "Generated files are out of date. Please run 'npm run generate' and commit the changes." && exit 1)
- run: tsc --noEmit