Skip to content

Cache GMAT install via @actions/cache #18

Cache GMAT install via @actions/cache

Cache GMAT install via @actions/cache #18

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
build:
name: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version-file: .nvmrc
cache: npm
- run: npm ci
- run: npm run format:check
- run: npm run lint
- run: npm run typecheck
- run: npm run build
- name: Verify dist/ matches src/
run: |
if [ -n "$(git status --porcelain dist)" ]; then
echo "::error::dist/ is out of date with src/. Run 'npm run build' locally and commit the result."
git status dist
git diff --stat dist
exit 1
fi