-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump go version, packages, dependencies (#227)
* chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> chore: bump go version, packages, dependencies Signed-off-by: Bence Csati <[email protected]> feat: go get -u Signed-off-by: Bence Csati <[email protected]> * feat: turn off nix-lint for now Signed-off-by: Bence Csati <[email protected]> * refactor: remove dependency from internal Signed-off-by: Bence Csati <[email protected]> --------- Signed-off-by: Bence Csati <[email protected]>
- Loading branch information
Showing
18 changed files
with
291 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,29 +49,6 @@ jobs: | |
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
vault_version: ["1.11.12", "1.12.8", "1.13.4", "1.14.1"] | ||
|
||
services: | ||
vault: | ||
image: hashicorp/vault:${{ matrix.vault_version }} | ||
env: | ||
SKIP_SETCAP: "true" | ||
VAULT_ADDR: http://127.0.0.1:8200 | ||
VAULT_TOKEN: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
VAULT_DEV_ROOT_TOKEN_ID: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
ports: | ||
- 8200:8200 | ||
bao: | ||
image: quay.io/openbao/openbao@sha256:a015ae0adb1af5b45b33632e29879ff87063d0878e9359584a50b2706e500e9a # 2.0.0-alpha20240329 | ||
env: | ||
SKIP_SETCAP: "true" | ||
BAO_ADDR: http://127.0.0.1:8200 | ||
BAO_TOKEN: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
BAO_DEV_ROOT_TOKEN_ID: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
ports: | ||
- 8300:8200 | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -110,30 +87,47 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Set up Nix | ||
uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | ||
- name: Set up Go | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
with: | ||
extra_nix_config: | | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
go-version: 1.23 | ||
|
||
- name: Set up magic Nix cache | ||
uses: DeterminateSystems/magic-nix-cache-action@b46e247b898aa56e6d2d2e728dc6df6c84fdb738 # v7 | ||
- name: Install deps | ||
run: make deps | ||
|
||
- name: Set up Go cache | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
- name: lint-go | ||
uses: golangci/[email protected] | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ github.job }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ github.job }}-${{ runner.os }}-go- | ||
version: latest | ||
|
||
- name: Prepare Nix shell | ||
run: nix develop --impure .#ci | ||
- name: lint-rest | ||
run: make lint-yaml | ||
|
||
# Enable this once Nix builds golangci-lint with Go 1.23 | ||
# - name: Set up Nix | ||
# uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | ||
# with: | ||
# extra_nix_config: | | ||
# access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Set up magic Nix cache | ||
# uses: DeterminateSystems/magic-nix-cache-action@b46e247b898aa56e6d2d2e728dc6df6c84fdb738 # v7 | ||
|
||
- name: Lint | ||
run: nix develop --impure .#ci -c make lint | ||
# - name: Set up Go cache | ||
# uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
# with: | ||
# path: | | ||
# ~/.cache/go-build | ||
# ~/go/pkg/mod | ||
# key: ${{ github.job }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
# restore-keys: | | ||
# ${{ github.job }}-${{ runner.os }}-go- | ||
|
||
# - name: Prepare Nix shell | ||
# run: nix develop --impure .#ci | ||
|
||
# - name: Lint | ||
# run: nix develop --impure .#ci -c make lint | ||
|
||
license-check: | ||
name: License check | ||
|
@@ -234,29 +228,6 @@ jobs: | |
e2e-test: | ||
name: E2E test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
vault_version: ["1.11.12", "1.12.8", "1.13.4", "1.14.1"] | ||
|
||
services: | ||
vault: | ||
image: hashicorp/vault:${{ matrix.vault_version }} | ||
env: | ||
SKIP_SETCAP: "true" | ||
VAULT_ADDR: http://127.0.0.1:8200 | ||
VAULT_TOKEN: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
VAULT_DEV_ROOT_TOKEN_ID: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
ports: | ||
- 8200:8200 | ||
bao: | ||
image: quay.io/openbao/openbao@sha256:a015ae0adb1af5b45b33632e29879ff87063d0878e9359584a50b2706e500e9a # 2.0.0-alpha20240329 | ||
env: | ||
SKIP_SETCAP: "true" | ||
BAO_ADDR: http://127.0.0.1:8200 | ||
BAO_TOKEN: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
BAO_DEV_ROOT_TOKEN_ID: 227e1cce-6bf7-30bb-2d2a-acc854318caf | ||
ports: | ||
- 8300:8200 | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -286,5 +257,3 @@ jobs: | |
|
||
- name: Test | ||
run: nix develop --impure .#ci -c make test-e2e | ||
env: | ||
VAULT_VERSION: ${{ matrix.vault_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.