Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Shohei Ueda authored and GitHub committed Apr 30, 2020
1 parent 029c1a0 commit e76c874
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/test.yml
Expand Up @@ -26,6 +26,7 @@ jobs:
matrix:
os:
- 'ubuntu-18.04'
- 'ubuntu-16.04'
- 'macos-latest'
- 'windows-latest'
steps:
Expand Down Expand Up @@ -56,19 +57,19 @@ jobs:
- run: npm ci

- name: Run prettier
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run format:check

- name: Run eslint
if: startsWith(matrix.os, 'ubuntu')
if: startsWith(matrix.os, 'ubuntu-18.04')
run: npm run lint

- run: npm test

- name: Upload test coverage as artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: coverage
name: coverage-${{ matrix.os }}
path: coverage

- uses: codecov/codecov-action@v1
Expand Down Expand Up @@ -97,7 +98,7 @@ jobs:

- name: Deploy
if: |
startsWith(matrix.os, 'ubuntu') &&
startsWith(matrix.os, 'ubuntu-18.04') &&
github.ref == 'refs/heads/master'
uses: ./
with:
Expand All @@ -114,6 +115,24 @@ jobs:
# commit_message: ${{ github.event.head_commit.message }}
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
if: |
startsWith(matrix.os, 'macos') &&
Expand Down

0 comments on commit e76c874

Please sign in to comment.