Skip to content

Commit e76c874

Browse files
authored
feat: Support ubuntu-16.04 (#263)
* ci: Add ubuntu-16.04 * ci: bump actions/upload-artifact from v1 to v2 * ci: Fix file name for all matrix
1 parent 029c1a0 commit e76c874

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
matrix:
2727
os:
2828
- 'ubuntu-18.04'
29+
- 'ubuntu-16.04'
2930
- 'macos-latest'
3031
- 'windows-latest'
3132
steps:
@@ -56,19 +57,19 @@ jobs:
5657
- run: npm ci
5758

5859
- name: Run prettier
59-
if: startsWith(matrix.os, 'ubuntu')
60+
if: startsWith(matrix.os, 'ubuntu-18.04')
6061
run: npm run format:check
6162

6263
- name: Run eslint
63-
if: startsWith(matrix.os, 'ubuntu')
64+
if: startsWith(matrix.os, 'ubuntu-18.04')
6465
run: npm run lint
6566

6667
- run: npm test
6768

6869
- name: Upload test coverage as artifact
69-
uses: actions/upload-artifact@v1
70+
uses: actions/upload-artifact@v2
7071
with:
71-
name: coverage
72+
name: coverage-${{ matrix.os }}
7273
path: coverage
7374

7475
- uses: codecov/codecov-action@v1
@@ -97,7 +98,7 @@ jobs:
9798

9899
- name: Deploy
99100
if: |
100-
startsWith(matrix.os, 'ubuntu') &&
101+
startsWith(matrix.os, 'ubuntu-18.04') &&
101102
github.ref == 'refs/heads/master'
102103
uses: ./
103104
with:
@@ -114,6 +115,24 @@ jobs:
114115
# commit_message: ${{ github.event.head_commit.message }}
115116
cname: 'actions-gh-pages.peaceiris.com'
116117

118+
- name: Deploy
119+
if: |
120+
startsWith(matrix.os, 'ubuntu-16.04') &&
121+
github.ref == 'refs/heads/master'
122+
uses: ./
123+
with:
124+
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
125+
github_token: ${{ secrets.GITHUB_TOKEN }}
126+
publish_branch: gh-pages-ubuntu-16.04
127+
publish_dir: ./test_projects/mdbook/book
128+
# external_repository: ''
129+
allow_empty_commit: true
130+
keep_files: true
131+
force_orphan: true
132+
user_name: 'github-actions[bot]'
133+
user_email: 'github-actions[bot]@users.noreply.github.com'
134+
# commit_message: ${{ github.event.head_commit.message }}
135+
117136
- name: Deploy
118137
if: |
119138
startsWith(matrix.os, 'macos') &&

0 commit comments

Comments
 (0)