Skip to content

feat: ✨ add support for Next.js 14 caching and update dependencies #143

feat: ✨ add support for Next.js 14 caching and update dependencies

feat: ✨ add support for Next.js 14 caching and update dependencies #143

Workflow file for this run

name: Continuous Integration
on:
push:
# branches-ignore:
# - main
# - development
defaults:
run:
shell: bash
jobs:
audit:
name: Audit
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Perform dependency audit
run: |
pnpm audit-ci --config .audit-ci.json
lint:
name: Lint
needs: audit
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Execute lint
run: |
pnpm lint
coverage:
name: Coverage
needs: audit
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
with:
npm_token: ${{ secrets.NPM_TOKEN }}
- name: Generate code coverage
run: |
pnpm test -- \
--ci \
--runInBand \
--coverage
- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}