1
1
# This action runs lint checks and tests against the code.
2
2
name : Check and Test
3
3
4
- # Controls when the action will run.
5
4
on :
6
5
pull_request :
7
6
8
- # Allows you to run this workflow manually from the Actions tab
9
7
workflow_dispatch :
10
8
push :
11
9
branches :
@@ -18,7 +16,6 @@ concurrency:
18
16
group : ${{ github.workflow }}-${{ github.ref }}
19
17
cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
20
18
21
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
22
19
jobs :
23
20
check-and-test :
24
21
name : Check and Test
28
25
strategy :
29
26
matrix :
30
27
os : [ubuntu-latest, windows-latest, macos-latest]
31
-
32
28
fail-fast : false
33
29
34
- # The type of runner that the job will run on
35
30
runs-on : ${{ matrix.os }}
36
31
37
32
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -51,11 +46,11 @@ jobs:
51
46
if : ${{ runner.os == 'Linux' }}
52
47
run : sudo apt-get -y update && sudo apt-get -y install libkrb5-dev libsecret-1-dev net-tools libstdc++6 gnome-keyring
53
48
54
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
55
49
- name : Checkout
56
50
uses : actions/checkout@v4
57
51
with :
58
52
fetch-depth : 0
53
+ ref : ${{ github.event.pull_request.head.sha }}
59
54
60
55
- name : Setup Node.js
61
56
uses : actions/setup-node@v4
95
90
shell : bash
96
91
97
92
- name : Run Checks
98
- # We exclude dependents when running eslint and depchecks because
99
- # linting and dependency checking is relevant only for packages where
100
- # the source code was changed
101
93
run : npm run check-ci -- --stream
102
94
shell : bash
103
95
0 commit comments