Skip to content

Commit

Permalink
Use setup-go action in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi committed May 13, 2024
1 parent 2550781 commit afa75cd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pr_cockpit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

env:
RUST_VERSION: 1.75.0
GO_VERSION: '^1.22.2'
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
Expand Down Expand Up @@ -88,11 +89,16 @@ jobs:
with:
submodules: recursive
- uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # tag=v25

- name: Setup Rust
uses: dtolnay/rust-toolchain@0e66bd3e6b38ec0ad5312288c83e47c143e6b09e # v1
with:
toolchain: ${{ env.RUST_VERSION }}

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Setup Rust Cache
uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
with:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/pr_general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: workflow_call

env:
RUST_VERSION: 1.75.0
GO_VERSION: '^1.22.2'
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
Expand All @@ -27,6 +28,10 @@ jobs:
with:
toolchain: ${{ env.RUST_VERSION }}

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}

- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 18
Expand Down Expand Up @@ -84,6 +89,10 @@ jobs:
toolchain: ${{ env.RUST_VERSION }}
components: clippy

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}

- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
with:
key: clippy
Expand Down Expand Up @@ -123,6 +132,10 @@ jobs:
toolchain: ${{ env.RUST_VERSION }}
components: rustfmt

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}

- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
with:
key: doc
Expand All @@ -146,6 +159,10 @@ jobs:
with:
toolchain: ${{ env.RUST_VERSION }}

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}

- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
with:
key: test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr_stackablectl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

env:
RUST_VERSION: 1.75.0
GO_VERSION: '^1.22.2'
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: "0"
CARGO_PROFILE_DEV_DEBUG: "0"
Expand Down Expand Up @@ -62,7 +63,7 @@ jobs:

- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: '^1.22.2'
go-version: ${{ env.GO_VERSION }}

- uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module rust/stackable/go-helm-wrapper

go 1.21
go 1.22

require (
github.com/mittwald/go-helm-client v0.12.9
Expand Down

0 comments on commit afa75cd

Please sign in to comment.