-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 954 Bytes
/
ci_edge_cockpit.yml
File metadata and controls
42 lines (35 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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