Checks for PR #164 #239
Workflow file for this run
This file contains 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: Run PR checks | |
run-name: "Checks for PR #${{ github.event.pull_request.number }}" | |
on: | |
pull_request: | |
branches: [main, develop] | |
permissions: | |
contents: read | |
concurrency: | |
group: checks-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Run linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ vars.NODE_VERSION_STRING }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm ci --prefix 'packages/web' | |
- name: Lint SST app | |
run: npm run lint | |
- name: Lint Next.js site | |
working-directory: ./packages/web | |
run: npm run lint | |
typecheck: | |
name: Run typechecks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ vars.NODE_VERSION_STRING }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm ci --prefix 'packages/web' | |
- name: Typecheck SST app | |
run: npm run typecheck | |
- name: Typecheck Next.js site | |
working-directory: ./packages/web | |
run: npm run typecheck | |
buildall: | |
if: github.actor != 'dependabot[bot]' | |
name: Non-dependabot build check | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ vars.NODE_VERSION_STRING }} | |
- name: Install dependencies | |
run: | | |
npm ci | |
npm ci --prefix 'packages/web' | |
- uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: ${{ secrets.DEV_DEPLOY_ROLE_ARN }} | |
aws-region: ${{ vars.AWS_REGION }} | |
mask-aws-account-id: true | |
- name: Build SST app | |
run: npx sst build --stage dev | |
buildsite: | |
if: github.actor == 'dependabot[bot]' | |
name: Dependabot build check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ vars.NODE_VERSION_STRING }} | |
- name: Install dependencies | |
run: npm ci --prefix 'packages/web' | |
- name: Build Next.js site | |
run: npm run build --prefix 'packages/web' |