diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ac46147 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +jobs: + build: + name: Build and typecheck + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Setup Node.js + uses: actions/setup-node@v7 + with: + # Matches opsimate-docs/dockerfile. Docusaurus 3.10 requires >=20, + # so this must stay on a supported LTS line. + node-version: '24' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Typecheck + working-directory: ./opsimate-docs + run: npm run typecheck + + - name: Build + run: npm run build diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index 6f34fdf..4787d37 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -28,7 +28,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7 with: - node-version: '18' + node-version: '24' cache: 'npm' cache-dependency-path: 'opsimate-docs/package-lock.json' diff --git a/opsimate-docs/package.json b/opsimate-docs/package.json index af79e6a..92952d1 100644 --- a/opsimate-docs/package.json +++ b/opsimate-docs/package.json @@ -46,6 +46,6 @@ ] }, "engines": { - "node": ">=18.0" + "node": ">=20.0" } }