feat(ci): remove unused Docker build step, fix pnpm setup #12
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 | |
cache: 'pnpm' | |
- 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 |