Skip to content

Commit 2218486

Browse files
committed
Update Github actions
1 parent ae551f8 commit 2218486

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

.github/workflows/go.yaml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,13 @@ jobs:
1414
name: Linters (Static Analysis) for Go
1515
steps:
1616
- name: Checkout code into the Go module directory.
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
1818

1919
- name: Install Go
20-
uses: actions/setup-go@v2
20+
uses: actions/setup-go@v4
2121
with:
2222
go-version: ${{ matrix.go-version }}
2323

24-
- uses: actions/cache@v1
25-
with:
26-
path: ~/go/pkg/mod
27-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28-
2924
- name: Linting & vetting.
3025
run: make lint
3126
test:
@@ -38,18 +33,13 @@ jobs:
3833
env:
3934
GOBIN: /tmp/.bin
4035
steps:
41-
- name: Install Go.
42-
uses: actions/setup-go@v1
43-
with:
44-
go-version: ${{ matrix.go-version }}
45-
4636
- name: Check out code into the Go module directory.
47-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
4838

49-
- uses: actions/cache@v1
39+
- name: Install Go.
40+
uses: actions/setup-go@v4
5041
with:
51-
path: ~/go/pkg/mod
52-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
42+
go-version: ${{ matrix.go-version }}
5343

5444
- name: Install ffmpeg
5545
run: |

.github/workflows/schedule.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ jobs:
1515
env:
1616
GOBIN: /tmp/.bin
1717
steps:
18-
- name: Install Go.
19-
uses: actions/setup-go@v1
20-
with:
21-
go-version: ${{ matrix.go-version }}
22-
2318
- name: Check out code into the Go module directory.
24-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2520

26-
- uses: actions/cache@v1
21+
- name: Install Go.
22+
uses: actions/setup-go@v4
2723
with:
28-
path: ~/go/pkg/mod
29-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24+
go-version: ${{ matrix.go-version }}
3025

3126
- name: Install ffmpeg
3227
run: |

0 commit comments

Comments
 (0)