Skip to content

Commit

Permalink
Merge pull request #1 from gdubicki/update-ci-cd
Browse files Browse the repository at this point in the history
Update to latest stable versions of actions, Golang, etc.
  • Loading branch information
gdubicki authored Apr 20, 2024
2 parents 08ec1b4 + 0d033b1 commit 4b4926d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ^1.14
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
Expand Down
42 changes: 25 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,59 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: stable
cache: false
- name: golangci-lint on .
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.28
version: v1.54
args: -E gofmt
- name: golangci-lint on fixtures/basic
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.28
version: v1.54
working-directory: fixtures/basic
args: -E gofmt
- name: golangci-lint on fixtures/detect_tty
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.28
version: v1.54
working-directory: fixtures/detect_tty
args: -E gofmt
- name: golangci-lint on fixtures/signals
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.28
version: v1.54
working-directory: fixtures/signals
args: -E gofmt
- name: golangci-lint on fixtures/timed
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.28
version: v1.54
working-directory: fixtures/timed
args: -E gofmt
- name: golangci-lint on fixtures/winsize
uses: golangci/golangci-lint-action@v2.3.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.28
version: v1.54
working-directory: fixtures/winsize
args: -E gofmt

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ^1.14
go-version: stable
cache: false
- name: Test
run: |
make test

0 comments on commit 4b4926d

Please sign in to comment.