Skip to content

Commit 27b4b86

Browse files
Merge pull request #185 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents 2a1ce67 + 7e564b8 commit 27b4b86

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
cover:
5757
name: Coverage
5858
needs: eslint
59-
runs-on: ubuntu-latest
59+
runs-on: ${{matrix.os}}
6060
timeout-minutes: 10
6161
strategy:
6262
matrix:
63-
node: ['11', '12']
63+
os: [ubuntu-latest, ubuntu-16.04, macos-latest]
6464
steps:
6565
- name: Set running flag
6666
run: echo "::set-env name=RUNNING::1"
@@ -83,25 +83,20 @@ jobs:
8383
run: echo "::set-env name=RUNNING::"
8484
if: "! env.GIT_DIFF"
8585
- 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)"
8787
run: echo "::set-env name=RUNNING::1"
8888
- 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')"
9090
run: echo "::set-env name=RUNNING::1"
9191
- 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')
9393
run: echo "::set-env name=RUNNING::1"
9494
- name: Set running flag
9595
run: |
9696
if [[ ! -f package.json ]] || ! < package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
9797
echo "::set-env name=RUNNING::"
9898
fi
9999
100-
- name: Setup node
101-
uses: actions/setup-node@v1
102-
with:
103-
node-version: ${{ matrix.node }}
104-
if: env.RUNNING
105100
- name: Get Yarn Cache Directory
106101
id: yarn-cache
107102
run: echo "::set-output name=dir::$(yarn cache dir)"
@@ -128,7 +123,7 @@ jobs:
128123
env:
129124
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
130125
COVERAGE_FILE: ./coverage/lcov.info
131-
if: env.RUNNING && matrix.node == '12'
126+
if: env.RUNNING && matrix.os == 'ubuntu-latest'
132127

133128
release:
134129
name: Release GitHub Actions

0 commit comments

Comments
 (0)