Skip to content

Commit

Permalink
bump action versions and fix goreleaser flags (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier authored Oct 7, 2024
1 parent 39fcc8b commit 6a08aea
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/goreleaser_configs/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
project_name: arrai
env:
- GO111MODULE=on
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
docker.io/anzbank/arrai
Expand All @@ -33,10 +33,10 @@ jobs:
org.opencontainers.image.url=https://arr.ai
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build docker container image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
pull: true
Expand All @@ -62,15 +62,15 @@ jobs:
- name: Login to DockerHub
# only attempt to push if we are in the open source repo that has credentials, and there's been a push, not merely a pull request.
if: github.repository == 'arr-ai/arrai' && github.event_name == 'push'
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}

- name: Build and push docker container image
# only attempt to push if we are in the open source repo that has credentials, and there's been a push, not merely a pull request.
if: github.repository == 'arr-ai/arrai' && github.event_name == 'push'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
pull: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Uses Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generate-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Checkout github-tag-action
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ vars.GENERATE_TAG_REPO || 'anothrNick/github-tag-action' }}
ref: ${{ vars.GENERATE_TAG_REF || '1.62.0' }}
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,42 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

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

- uses: Logerfo/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
uses: golangci/golangci-lint-action@v6
with:
version: v1.54.0

- name: Check clean
run: make check-clean

- name: Validate goreleaser config
run: |
go run github.com/goreleaser/goreleaser@latest check -f .github/goreleaser_configs/goreleaser.yml
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: check -f .github/goreleaser_configs/goreleaser.yml

build:
name: Build
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

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

- name: Get dependencies
run: go get -v -t -d ./...
Expand All @@ -60,12 +62,12 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

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

- name: Run tests
run: make test
Expand All @@ -75,7 +77,7 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Calculate coverage
run: go test -v -covermode=atomic -coverprofile=coverage.out -race ./...
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '0'

Expand All @@ -34,7 +34,7 @@ jobs:
run: PATH=$PATH:$(go env GOPATH)/bin make all

- name: Validate goreleaser config
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: check -f .github/goreleaser_configs/goreleaser.yml
Expand All @@ -44,9 +44,9 @@ jobs:

# Configured via `.github/goreleaser_config/.goreleaser.yml`
- name: Release binaries via goreleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist --debug -f .github/goreleaser_configs/goreleaser.yml
args: release --clean --verbose -f .github/goreleaser_configs/goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.21

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

- name: Get dependencies
run: go get -v -t -d ./...
Expand All @@ -25,7 +25,7 @@ jobs:
run: GOOS=js GOARCH=wasm go build -o arrai.wasm ./cmd/arrai

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x

Expand Down

0 comments on commit 6a08aea

Please sign in to comment.