Update our dependencies #147
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| ci: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Windows | |
| os: windows-latest | |
| build: ON | |
| - name: Linux | |
| os: ubuntu-latest | |
| build: ON | |
| - name: macOS (Intel) | |
| os: macos-13 | |
| build: ON | |
| - name: macOS (ARM) | |
| os: macos-latest | |
| build: ON | |
| - name: Code formatting | |
| os: ubuntu-latest | |
| build: OFF | |
| - name: Linting | |
| os: ubuntu-latest | |
| build: OFF | |
| - name: Type checking | |
| os: ubuntu-latest | |
| build: OFF | |
| steps: | |
| - name: Check out OpenCOR | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: OpenCOR dependencies | |
| run: pnpm install | |
| - name: Build OpenCOR | |
| if: matrix.build == 'ON' | |
| run: pnpm build | |
| - name: Build OpenCOR's Web app | |
| if: matrix.build == 'ON' | |
| run: pnpm build:web | |
| - name: Code formatting | |
| if: matrix.name == 'Code formatting' | |
| run: pnpm format:check | |
| - name: Linting | |
| if: matrix.name == 'Linting' | |
| run: pnpm lint | |
| - name: Type checking | |
| if: matrix.name == 'Type checking' | |
| run: | | |
| pnpm typecheck | |
| pnpm typecheck:web | |
| - name: Clean OpenCOR | |
| run: pnpm clean |