You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@ name: Build, test and analyze
2
2
3
3
on:
4
4
pull_request:
5
-
branches: [master]
5
+
branches: [master]
6
6
workflow_call:
7
7
8
8
jobs:
9
-
10
9
# Run linter to ensure new code respect coding rules
11
10
lint:
12
11
name: Lint code
@@ -33,7 +32,7 @@ jobs:
33
32
build:
34
33
name: Build and test
35
34
runs-on: ubuntu-latest
36
-
needs: [lint]
35
+
needs: [lint]
37
36
steps:
38
37
- name: Checkout repository
39
38
uses: actions/checkout@v3
@@ -49,13 +48,13 @@ jobs:
49
48
- name: Run tests
50
49
env:
51
50
GIT_REF: ${{ github.head_ref || 'master' }}
52
-
run: docker run --rm --entrypoint="" lowlighter/metrics:$(echo $GIT_REF | sed 's/[^a-z]/-/g') npm run test-metrics
51
+
run: docker run --rm --entrypoint="" lowlighter/metrics:$(echo $GIT_REF | sed 's/[^a-z]/-/g') sh -xc 'npm install --no-save && exec npm run test-metrics'
0 commit comments