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
This commit is contained in:
parent
029c1a08f9
commit
e76c874d85
|
@ -26,6 +26,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- 'ubuntu-18.04'
|
- 'ubuntu-18.04'
|
||||||
|
- 'ubuntu-16.04'
|
||||||
- 'macos-latest'
|
- 'macos-latest'
|
||||||
- 'windows-latest'
|
- 'windows-latest'
|
||||||
steps:
|
steps:
|
||||||
|
@ -56,19 +57,19 @@ jobs:
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- name: Run prettier
|
- name: Run prettier
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||||
run: npm run format:check
|
run: npm run format:check
|
||||||
|
|
||||||
- name: Run eslint
|
- name: Run eslint
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu-18.04')
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
- name: Upload test coverage as artifact
|
- name: Upload test coverage as artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: coverage
|
name: coverage-${{ matrix.os }}
|
||||||
path: coverage
|
path: coverage
|
||||||
|
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v1
|
||||||
|
@ -97,7 +98,7 @@ jobs:
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'ubuntu') &&
|
startsWith(matrix.os, 'ubuntu-18.04') &&
|
||||||
github.ref == 'refs/heads/master'
|
github.ref == 'refs/heads/master'
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -114,6 +115,24 @@ jobs:
|
||||||
# commit_message: ${{ github.event.head_commit.message }}
|
# commit_message: ${{ github.event.head_commit.message }}
|
||||||
cname: 'actions-gh-pages.peaceiris.com'
|
cname: 'actions-gh-pages.peaceiris.com'
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
if: |
|
||||||
|
startsWith(matrix.os, 'ubuntu-16.04') &&
|
||||||
|
github.ref == 'refs/heads/master'
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_branch: gh-pages-ubuntu-16.04
|
||||||
|
publish_dir: ./test_projects/mdbook/book
|
||||||
|
# external_repository: ''
|
||||||
|
allow_empty_commit: true
|
||||||
|
keep_files: true
|
||||||
|
force_orphan: true
|
||||||
|
user_name: 'github-actions[bot]'
|
||||||
|
user_email: 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
# commit_message: ${{ github.event.head_commit.message }}
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: |
|
if: |
|
||||||
startsWith(matrix.os, 'macos') &&
|
startsWith(matrix.os, 'macos') &&
|
||||||
|
|
Loading…
Reference in New Issue