@@ -56,11 +56,11 @@ jobs:
56
56
cover :
57
57
name : Coverage
58
58
needs : eslint
59
- runs-on : ubuntu-latest
59
+ runs-on : ${{matrix.os}}
60
60
timeout-minutes : 10
61
61
strategy :
62
62
matrix :
63
- node : ['11', '12' ]
63
+ os : [ubuntu-latest, ubuntu-16.04, macos-latest ]
64
64
steps :
65
65
- name : Set running flag
66
66
run : echo "::set-env name=RUNNING::1"
@@ -83,25 +83,20 @@ jobs:
83
83
run : echo "::set-env name=RUNNING::"
84
84
if : " ! env.GIT_DIFF"
85
85
- name : Set running flag
86
- if : " matrix.node == '12 ' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
86
+ if : " matrix.os == 'ubuntu-latest ' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
87
87
run : echo "::set-env name=RUNNING::1"
88
88
- name : Set running flag
89
- if : " matrix.node == '12 ' && ! startsWith(github.ref, 'refs/tags/') && startsWith(github.base_ref, 'refs/heads/develop/v')"
89
+ if : " matrix.os == 'ubuntu-latest ' && ! startsWith(github.ref, 'refs/tags/') && startsWith(github.base_ref, 'refs/heads/develop/v')"
90
90
run : echo "::set-env name=RUNNING::1"
91
91
- name : Set running flag
92
- if : matrix.node == '12 ' && startsWith(github.ref, 'refs/tags/v')
92
+ if : matrix.os == 'ubuntu-latest ' && startsWith(github.ref, 'refs/tags/v')
93
93
run : echo "::set-env name=RUNNING::1"
94
94
- name : Set running flag
95
95
run : |
96
96
if [[ ! -f package.json ]] || ! < package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
97
97
echo "::set-env name=RUNNING::"
98
98
fi
99
99
100
- - name : Setup node
101
- uses : actions/setup-node@v1
102
- with :
103
- node-version : ${{ matrix.node }}
104
- if : env.RUNNING
105
100
- name : Get Yarn Cache Directory
106
101
id : yarn-cache
107
102
run : echo "::set-output name=dir::$(yarn cache dir)"
@@ -128,7 +123,7 @@ jobs:
128
123
env :
129
124
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
130
125
COVERAGE_FILE : ./coverage/lcov.info
131
- if : env.RUNNING && matrix.node == '12 '
126
+ if : env.RUNNING && matrix.os == 'ubuntu-latest '
132
127
133
128
release :
134
129
name : Release GitHub Actions
0 commit comments