10
10
11
11
jobs :
12
12
test :
13
- if : " !contains(github.event.commits.*.message, '[skip ci]')"
14
13
env :
15
14
CI : true
16
15
CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
21
20
runs-on : ${{ matrix.os }}
22
21
steps :
23
22
- uses : actions/checkout@v1
23
+ if : contains(toJson(github.event.commits), '[skip ci]') == false
24
24
- uses : actions/cache@v1
25
+ if : contains(toJson(github.event.commits), '[skip ci]') == false
25
26
id : nodejs-cache
26
27
name : Cache node modules
27
28
with :
@@ -37,16 +38,19 @@ jobs:
37
38
# node: ${{ matrix.node }}
38
39
39
40
- name : Dump GitHub context
41
+ if : contains(toJson(github.event.commits), '[skip ci]') == false
40
42
env :
41
43
GITHUB_CONTEXT : ${{ toJson(github) }}
42
44
run : echo "$GITHUB_CONTEXT"
43
45
- name : Installing dependencies
44
- if : steps.nodejs-cache.outputs.cache-hit != 'true'
46
+ if : contains(toJson(github.event.commits), '[skip ci]') == false && steps.nodejs-cache.outputs.cache-hit != 'true'
45
47
run : yarn --frozen-lockfile
46
48
- name : Linting & Format codebase with ESLint & Prettier
49
+ if : contains(toJson(github.event.commits), '[skip ci]') == false
47
50
run : yarn lint && yarn fmt
48
51
- name : Testing
52
+ if : contains(toJson(github.event.commits), '[skip ci]') == false
49
53
run : yarn test:ci
50
54
- name : Sending test coverage to CodeCov
51
- if : matrix.os == 'ubuntu-latest' && matrix.node == '12.x'
55
+ if : contains(toJson(github.event.commits), '[skip ci]') == false && matrix.os == 'ubuntu-latest' && matrix.node == '12.x'
52
56
run : echo ${{ matrix.node }} && bash <(curl -s https://codecov.io/bash)
0 commit comments