Skip to content

Commit

Permalink
Update Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Aug 16, 2023
1 parent ae551f8 commit 2218486
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ jobs:
name: Linters (Static Analysis) for Go
steps:
- name: Checkout code into the Go module directory.
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Linting & vetting.
run: make lint
test:
Expand All @@ -38,18 +33,13 @@ jobs:
env:
GOBIN: /tmp/.bin
steps:
- name: Install Go.
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- name: Check out code into the Go module directory.
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: actions/cache@v1
- name: Install Go.
uses: actions/setup-go@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
go-version: ${{ matrix.go-version }}

- name: Install ffmpeg
run: |
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ jobs:
env:
GOBIN: /tmp/.bin
steps:
- name: Install Go.
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}

- name: Check out code into the Go module directory.
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: actions/cache@v1
- name: Install Go.
uses: actions/setup-go@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
go-version: ${{ matrix.go-version }}

- name: Install ffmpeg
run: |
Expand Down

0 comments on commit 2218486

Please sign in to comment.