feat: setup project to build and run on windows os #32
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: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- synchronize | ||
jobs: | ||
ci: | ||
env: | ||
node-latest: 20.x | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
node-version: | ||
- 18.x | ||
- ${{ node-latest }} | ||
Check failure on line 24 in .github/workflows/ci.yaml GitHub Actions / Continuous IntegrationInvalid workflow file
|
||
include: | ||
- os: windows-latest | ||
node-version: ${{ node-latest }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout to ${{ github.ref }} | ||
uses: actions/checkout@v4 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: ^8.6.2 | ||
- name: Install node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install --ignore-scripts | ||
- name: Build | ||
run: pnpm build | ||
- name: Lint | ||
run: pnpm test:lint | ||
if: always() | ||
- name: Type check | ||
run: pnpm test:types | ||
if: always() | ||
- name: Unit test | ||
run: pnpm test:unit | ||
if: always() | ||
- name: Commit lint | ||
run: pnpm test:commit | ||
if: always() |