Repository navigation
Merging backend-crons back into node-backend #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: test-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Pin npm | |
| run: npm install -g npm@11.6.2 | |
| - name: Create .npmrc | |
| run: echo "@abstractplay:registry=https://npm.pkg.github.com/" > .npmrc | |
| - run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PAT_READ_PACKAGES}}" >> .npmrc | |
| - name: Reject merge conflict markers in dep files | |
| run: | | |
| if grep -r '^<<<<<<<' package.json package-lock.json ci-deps.dev.json ci-deps.prod.json crons/ci-deps.dev.json crons/ci-deps.prod.json crons/package.json 2>/dev/null; then | |
| echo "Conflict markers found in dependency files" | |
| exit 1 | |
| fi | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Validate ci-deps manifests | |
| run: npx ap-check-ci-deps | |
| - name: Install pinned AP dependencies | |
| run: npx ap-install-deps --stage dev | |
| - name: Sync crons AP manifests from lockfile | |
| run: node scripts/sync-crons-ap-deps.mjs --stage dev | |
| - name: Verify lockfile matches ci-deps | |
| run: npx ap-check-ci-deps --stage dev --strict | |
| - name: Build | |
| run: npm run build | |
| env: | |
| CI: false | |
| - name: Test (Lambda init smoke) | |
| run: npm test | |
| test-crons: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Pin npm | |
| run: npm install -g npm@11.6.2 | |
| - name: Create .npmrc | |
| run: echo "@abstractplay:registry=https://npm.pkg.github.com/" > .npmrc | |
| - run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PAT_READ_PACKAGES}}" >> .npmrc | |
| - name: Install NPM dependencies | |
| run: npm ci | |
| - name: Install pinned AP dependencies | |
| run: npx ap-install-deps --stage dev | |
| - name: Sync crons AP manifests from lockfile | |
| run: node scripts/sync-crons-ap-deps.mjs --stage dev | |
| - name: Lint crons | |
| run: npm run lint:crons | |
| - name: Test crons | |
| run: npm run test:crons | |
| - name: Test crons Lambda layers | |
| run: npm run test:crons:layers |