Upgrade dependencies #313
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: CI | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- '18' | |
- '20' | |
- '22' | |
platform: | |
- macos-latest | |
- ubuntu-latest | |
name: 'Node.js ${{matrix.node}} / ${{matrix.platform}}' | |
runs-on: ${{matrix.platform}} | |
steps: | |
- name: Configure Git | |
run: | | |
git config --global core.autocrlf false | |
git config --global user.name "Carlo Dapor (bot)" | |
git config --global user.email "[email protected]" | |
- name: Checkout Commit | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node}} | |
cache: 'pnpm' | |
- name: Install pnpm | |
run: npm add --global pnpm | |
- name: pnpm install | |
run: pnpm install | |
- name: Audit | |
run: pnpm audit | |
- name: Run pre build | |
run: pnpm run prebuild | |
- name: Run lint on sources and tests | |
run: pnpm run lint | |
- name: Run build | |
run: pnpm run build | |
- name: Run prod test suites | |
run: pnpm run test:prod | |
- name: Run generation of dist package.json | |
run: pnpm run dist:package.json | |
- name: Run format dist sources | |
run: pnpm run format:dist | |