release: 1.0.5. #27
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: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Run scanners, linters and spellchecking. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source. | |
uses: actions/checkout@v3 | |
- name: Setup pnpm. | |
uses: pnpm/action-setup@v2 | |
- name: Setup node. | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies. | |
run: pnpm install --frozen-lockfile | |
- name: Execute audit-ci scanner. | |
run: npx audit-ci | |
- name: Check code format. | |
run: pnpm fmt:check | |
- name: Lint code-base. | |
run: pnpm lint | |
- name: Spellcheck code-base. | |
run: pnpm spellcheck | |
unit: | |
name: Run unit tests. | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [20] | |
os: [ubuntu-latest] | |
fail-fast: false | |
steps: | |
- name: Checkout source. | |
uses: actions/checkout@v3 | |
- name: Setup pnpm. | |
uses: pnpm/action-setup@v2 | |
- name: Setup node (${{ matrix.node-version }}). | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install dependencies. | |
run: pnpm install --frozen-lockfile | |
- name: Run Testsuite. | |
run: pnpm -r test |