Skip to content

Commit 4a7d44d

Browse files
committed
Update ci scripts
1 parent d7efa1c commit 4a7d44d

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,42 @@ jobs:
1717
matrix:
1818
node-version: [12.x]
1919
steps:
20-
- name: Check repository
21-
uses: actions/checkout@v2
22-
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
28-
- name: Cache dependencies
29-
uses: actions/cache@v2
30-
with:
31-
path: |
32-
**/node_modules
33-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
34-
35-
- name: Install dependencies
36-
run: yarn
37-
38-
- name: Run test coverage
39-
run: yarn test --coverage
40-
41-
- name: Upload coverage to Codecov
42-
uses: codecov/codecov-action@v1
43-
with:
44-
token: ${{ secrets.CODECOV_TOKEN }}
45-
46-
- name: Deploy to GitHub Pages
47-
run: |
48-
git config --global user.name $user_name
49-
git config --global user.email $user_email
50-
git remote set-url origin https://${github_token}@github.com/${repository}
51-
yarn deploy -m "${{ github.event.head_commit.message }}"
52-
env:
53-
user_name: 'github-actions[bot]'
54-
user_email: 'github-actions[bot]@users.noreply.github.com'
55-
github_token: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
56-
repository: ${{ github.repository }}
20+
- name: Check repository
21+
uses: actions/checkout@v2
22+
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Cache dependencies
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
**/node_modules
33+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
34+
35+
- name: Install dependencies
36+
run: yarn
37+
38+
- name: Run test coverage
39+
run: yarn test --coverage
40+
41+
- name: Upload coverage to Codecov
42+
uses: codecov/codecov-action@v1
43+
with:
44+
token: ${{ secrets.CODECOV_TOKEN }}
45+
46+
- name: Deploy to GitHub Pages
47+
run: |
48+
git config --global user.name $user_name
49+
git config --global user.email $user_email
50+
git remote set-url origin https://${github_token}@github.com/${repository}
51+
yarn deploy -m "${{ github.event.head_commit.message }}"
52+
env:
53+
user_name: 'github-actions[bot]'
54+
user_email: 'github-actions[bot]@users.noreply.github.com'
55+
github_token: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
56+
repository: ${{ github.repository }}
5757

5858
# Reference: https://github.community/t/run-next-job-sequentially-even-if-a-previous-job-fails/17404/2

0 commit comments

Comments
 (0)