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