@@ -2,44 +2,4 @@ name: Build
2
2
on : [push, pull_request]
3
3
jobs :
4
4
combinations :
5
- # git push --tags does not create any commits so should not trigger a new
6
- # workflow. There are no ways to skip workflows, so we skip jobs instead
7
- if : toJson(github.event.commits) != '[]'
8
- strategy :
9
- # Test on Windows/Mac/Linux using latest Node.js.
10
- # Also test on Linux with older Node.js versions.
11
- # We do not run each possible combination to make CI faster.
12
- matrix :
13
- os : [ubuntu-latest, macOS-latest, windows-latest]
14
- node : [18]
15
- include :
16
- - os : ubuntu-latest
17
- node : 14.18.0
18
- fail-fast : false
19
- runs-on : ${{ matrix.os }}
20
- # We do not use @actions/cache because restoring/saving cache currently
21
- # takes more time than the time saved on `npm ci`
22
- steps :
23
- - name : Git checkout
24
- uses : actions/checkout@v3
25
- - name : Node.js ${{ matrix.node }}
26
- uses : actions/setup-node@v3
27
- with :
28
- node-version : ${{ matrix.node }}
29
- cache : npm
30
- # TODO: remove after dropping support for Node <15.0.0, i.e. ensuring
31
- # npm v7 is used. We need npm v7 due to peerDependencies automatic
32
- # installation
33
- - name : Install latest npm
34
- run : npm install -g npm
35
- if : " ${{ matrix.node == '14.18.0' }}"
36
- - name : Install dependencies
37
- run : npm ci
38
- - name : Linting
39
- run : npx gulp check
40
- - name : Build
41
- run : npx gulp build
42
- - name : Tests
43
- run : npx gulp unit
44
- - name : Upload test coverage
45
- run : npx gulp uploadCoverage
5
+ uses : ehmicky/dev-tasks/.github/workflows/build.yml@main
0 commit comments