feat(ci): remove unused Docker build step, fix pnpm setup #14
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: CI workflow | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- '.vscode/**' | |
- 'LICENSE' | |
- 'README.md' | |
workflow_dispatch: | |
env: | |
CI: "true" | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: ['20.9.0'] | |
name: "Build: ${{ matrix.os }}, Node.js ${{ matrix.node }}" | |
env: | |
CI: 1 | |
steps: | |
- name: Prepare git | |
run: git config --global core.autocrlf false | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8.15.8 | |
run_install: false | |
standalone: true | |
dest: ~/setup-pnpm | |
- name: Cache pnpm modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }}-node- | |
- name: Install dependencies | |
run: pnpm i | |
- name: Transpile TS to JS | |
run: pnpm build | |
- name: Lint code | |
run: pnpm lint:ci | |
- name: Run unit tests | |
run: pnpm test:unit |