edge-cockpit CI on branch >> 140/merge << #9
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 edge-cockpit | |
| run-name: edge-cockpit CI on branch >> ${{ github.ref_name }} << | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - "edge/cockpit/**" | |
| jobs: | |
| lint_and_test_on_edge_cockpit: | |
| name: Run JS linter and unit tests | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: "./edge/cockpit/package-lock.json" | |
| - name: Install dependencies | |
| run: make install | |
| working-directory: ./edge/cockpit | |
| - name: TypeScript type check | |
| run: make type_check | |
| working-directory: ./edge/cockpit | |
| - name: Run unit tests | |
| run: make unit_tests | |
| working-directory: ./edge/cockpit |