Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 936c9d9

Browse files
committed
Update to latest actions
1 parent 6723192 commit 936c9d9

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: CI
22

33
on:
4-
push: {branches: main}
5-
pull_request: {branches: main}
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
68

79
jobs:
810
ci:
911
runs-on: ubuntu-latest
1012
steps:
1113
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
13-
with: {node-version: 13.x}
14-
- uses: actions/cache@v1
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 12
17+
- uses: actions/cache@v2
1518
with:
1619
path: ~/.npm
1720
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}

.github/workflows/integration.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Integration
22

33
on:
4-
push: {branches: main}
5-
pull_request: {branches: main}
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
68

79
jobs:
810
test-return:
@@ -39,7 +41,7 @@ jobs:
3941
runs-on: ubuntu-latest
4042
steps:
4143
- uses: actions/checkout@v2
42-
- uses: actions/cache@v1
44+
- uses: actions/cache@v2
4345
with:
4446
path: ~/.npm
4547
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}

.github/workflows/licensed.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Licensed
22

33
on:
4-
push: {branches: main}
5-
pull_request: {branches: main}
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
68
repository_dispatch:
79
workflow_dispatch:
810

@@ -12,7 +14,7 @@ jobs:
1214
name: Check licenses
1315
steps:
1416
- uses: actions/checkout@v2
15-
- uses: actions/cache@v1
17+
- uses: actions/cache@v2
1618
with:
1719
path: ~/.npm
1820
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}

.github/workflows/pull-request-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Pull Request Test
22

33
on:
44
pull_request:
5-
branches: main
5+
branches: [main]
66
types: [opened, synchronize]
77

88
jobs:

0 commit comments

Comments
 (0)