Use suspense() helper even more! #3317
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: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
CI: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- name: Install | |
run: npm ci | |
- name: Check Linting | |
run: npm run lint | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
CI: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- name: Install | |
run: npm ci | |
- name: Run tests | |
run: npm run test-ci | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
env: | |
CI: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
- name: Install | |
run: npm ci | |
- name: Cache nextjs build cache | |
uses: jongwooo/next-cache@v1 | |
- name: Build | |
run: npm run build | |
- name: Check for uncommitted changes | |
id: check-changes | |
uses: mskri/check-uncommitted-changes-action@v1.0.1 | |
- name: There are uncommited changes | |
if: steps.check-changes.outputs.changes != '' | |
run: exit 1 |