Skip to content

Commit da79bd4

Browse files
feat: update workflows
1 parent 549bfd0 commit da79bd4

File tree

5 files changed

+80
-77
lines changed

5 files changed

+80
-77
lines changed

.github/workflows/check_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
- name: Check package version
1212
uses: technote-space/package-version-check-action@v1
1313
with:
14-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1515
TEST_TAG_PREFIX: test/
1616
BRANCH_PREFIX: release/

.github/workflows/ci.yml

Lines changed: 74 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,74 @@
1-
on:
2-
pull_request:
3-
push:
4-
branches:
5-
- master
6-
tags:
7-
- "!*"
8-
9-
name: Build
10-
11-
jobs:
12-
eslint:
13-
name: ESLint
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v1
17-
with:
18-
fetch-depth: 3
19-
- name: Install Package dependencies
20-
run: yarn install
21-
- name: Check code style
22-
run: yarn lint
23-
- uses: 8398a7/action-slack@v1
24-
with:
25-
type: failure
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
29-
if: failure()
30-
31-
jest:
32-
name: Jest
33-
needs: eslint
34-
runs-on: ubuntu-latest
35-
strategy:
36-
matrix:
37-
node: ['8', '10', '11', '12']
38-
steps:
39-
- uses: actions/checkout@v1
40-
with:
41-
fetch-depth: 3
42-
- name: Setup node
43-
uses: actions/setup-node@v1
44-
with:
45-
node-version: ${{ matrix.node }}
46-
- name: Install Package dependencies
47-
run: yarn install
48-
- name: Run tests
49-
run: yarn cover
50-
- name: Codecov
51-
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
52-
env:
53-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
54-
COVERAGE_FILE: ./coverage/lcov.info
55-
- uses: 8398a7/action-slack@v1
56-
with:
57-
type: failure
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
61-
if: failure()
62-
63-
slack:
64-
name: Slack
65-
needs: jest
66-
runs-on: ubuntu-latest
67-
steps:
68-
- uses: 8398a7/action-slack@v1
69-
with:
70-
type: success
71-
env:
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1+
on:
2+
pull_request:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- "!*"
8+
9+
name: Build
10+
11+
jobs:
12+
eslint:
13+
name: ESLint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
with:
18+
fetch-depth: 3
19+
- name: Install Package dependencies
20+
run: yarn install
21+
- name: Check code style
22+
run: yarn lint
23+
- uses: 8398a7/action-slack@v1
24+
with:
25+
type: failure
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
29+
if: failure()
30+
31+
jest:
32+
name: Jest
33+
needs: eslint
34+
runs-on: ubuntu-latest
35+
strategy:
36+
matrix:
37+
node: ['8', '10', '11', '12']
38+
steps:
39+
- uses: actions/checkout@v1
40+
with:
41+
fetch-depth: 3
42+
- name: Setup node
43+
uses: actions/setup-node@v1
44+
with:
45+
node-version: ${{ matrix.node }}
46+
- name: Install Package dependencies
47+
run: yarn install
48+
- name: Run tests
49+
run: yarn cover
50+
- name: Codecov
51+
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
52+
env:
53+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
54+
COVERAGE_FILE: ./coverage/lcov.info
55+
if: matrix.node == '12'
56+
- uses: 8398a7/action-slack@v1
57+
with:
58+
type: failure
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
62+
if: failure()
63+
64+
slack:
65+
name: Slack
66+
needs: jest
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: 8398a7/action-slack@v1
70+
with:
71+
type: success
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/project_card_moved.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
on: project_card
1+
on:
2+
project_card:
3+
types: [moved]
24
name: Project Card Event
35
jobs:
46
triage:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Check package version
1818
uses: technote-space/package-version-check-action@v1
1919
with:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
2121
- name: Install Package dependencies
2222
run: yarn install
2323
- name: Test

.github/workflows/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ jobs:
88
- name: TOC Generator
99
uses: technote-space/toc-generator@v1
1010
with:
11-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1212
TARGET_PATHS: 'README.md,README.ja.md'

0 commit comments

Comments
 (0)