Skip to content

Commit cf37c6a

Browse files
authored
Fix/devlab foundry (#20)
* fix: rename to foundry org update tests to run in parallel * fix: make tee for tests * fix: update go and toolchain
1 parent 8b43b64 commit cf37c6a

File tree

21 files changed

+152
-130
lines changed

21 files changed

+152
-130
lines changed

.github/workflows/pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
pr:
2929
runs-on: ubuntu-latest
3030
container:
31-
image: golang:1.21-bullseye
31+
image: golang:1.24-bookworm
3232
needs: set-version
3333
env:
3434
REVISION: $GITHUB_SHA
@@ -39,6 +39,7 @@ jobs:
3939
run: |
4040
# Chromium dependencies
4141
apt-get update && apt-get install -y jq git \
42+
zip unzip \
4243
libnss3 \
4344
libxss1 \
4445
libasound2 \

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
release:
3838
runs-on: ubuntu-latest
3939
container:
40-
image: golang:1.21-bullseye
40+
image: golang:1.24-bookworm
4141
env:
4242
FOO: Bar
4343
needs: set-version
@@ -59,4 +59,12 @@ jobs:
5959
- name: release binary
6060
run: |
6161
make REVISION=$GITHUB_SHA GIT_TAG=${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }} cross-build
62-
make REVISION=$GITHUB_SHA GIT_TAG=${SEMVER} PAT=${{ secrets.GITHUB_TOKEN }} release
62+
- name: Release
63+
uses: softprops/action-gh-release@v2
64+
with:
65+
tag_name: ${{ needs.set-version.outputs.semVer }}
66+
# TODO: add additional info to the release
67+
generate_release_notes: true
68+
token: ${{ secrets.GITHUB_TOKEN }}
69+
files: ./dist/*
70+
prerelease: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ vendor/
2626
.vscode
2727

2828
.ignore*
29+
local/

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
OWNER := dnitsch
1+
OWNER := DevLabFoundry
22
NAME := aws-cli-auth
33
GIT_TAG := 0.11.11
44
VERSION := v$(GIT_TAG)
@@ -9,10 +9,9 @@ LDFLAGS := -ldflags="-s -w -X \"github.com/$(OWNER)/$(NAME)/cmd.Version=$(VERSIO
99
.PHONY: test test_ci tidy install buildprep build buildmac buildwin
1010

1111
test: test_prereq
12-
go test ./... -v -mod=readonly -coverprofile=.coverage/out -race > .coverage/test.out ; \
12+
go test ./... -v -mod=readonly -coverprofile=.coverage/out -race | tee .coverage/test.out ; \
1313
cat .coverage/test.out | go-junit-report > .coverage/report-junit.xml ; \
14-
gocov convert .coverage/out | gocov-xml > .coverage/report-cobertura.xml ; \
15-
cat .coverage/test.out
14+
gocov convert .coverage/out | gocov-xml > .coverage/report-cobertura.xml
1615

1716
test_ci:
1817
go test ./... -mod=readonly

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Go Report Card](https://goreportcard.com/badge/github.com/dnitsch/aws-cli-auth)](https://goreportcard.com/report/github.com/dnitsch/aws-cli-auth)
1+
[![Go Report Card](https://goreportcard.com/badge/github.com/DevLabFoundry/aws-cli-auth)](https://goreportcard.com/report/github.com/DevLabFoundry/aws-cli-auth)
22
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_aws-cli-auth&metric=bugs)](https://sonarcloud.io/summary/new_code?id=dnitsch_aws-cli-auth)
33
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_aws-cli-auth&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=dnitsch_aws-cli-auth)
44
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=dnitsch_aws-cli-auth&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=dnitsch_aws-cli-auth)

aws-cli-auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"context"
55

6-
"github.com/dnitsch/aws-cli-auth/cmd"
6+
"github.com/DevLabFoundry/aws-cli-auth/cmd"
77
)
88

99
func main() {

cmd/clear.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os"
66
"os/user"
77

8-
"github.com/dnitsch/aws-cli-auth/internal/credentialexchange"
9-
"github.com/dnitsch/aws-cli-auth/internal/web"
8+
"github.com/DevLabFoundry/aws-cli-auth/internal/credentialexchange"
9+
"github.com/DevLabFoundry/aws-cli-auth/internal/web"
1010
"github.com/spf13/cobra"
1111
)
1212

cmd/cmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io"
66
"testing"
77

8-
"github.com/dnitsch/aws-cli-auth/cmd"
8+
"github.com/DevLabFoundry/aws-cli-auth/cmd"
99
)
1010

1111
func Test_helpers_for_command(t *testing.T) {

cmd/saml.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010

1111
"github.com/aws/aws-sdk-go-v2/config"
1212
"github.com/aws/aws-sdk-go-v2/service/sts"
13-
"github.com/dnitsch/aws-cli-auth/internal/cmdutils"
14-
"github.com/dnitsch/aws-cli-auth/internal/credentialexchange"
15-
"github.com/dnitsch/aws-cli-auth/internal/web"
13+
"github.com/DevLabFoundry/aws-cli-auth/internal/cmdutils"
14+
"github.com/DevLabFoundry/aws-cli-auth/internal/credentialexchange"
15+
"github.com/DevLabFoundry/aws-cli-auth/internal/web"
1616
"github.com/spf13/cobra"
1717
)
1818

cmd/specific.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/aws/aws-sdk-go-v2/config"
88
"github.com/aws/aws-sdk-go-v2/service/sts"
9-
"github.com/dnitsch/aws-cli-auth/internal/credentialexchange"
9+
"github.com/DevLabFoundry/aws-cli-auth/internal/credentialexchange"
1010
"github.com/spf13/cobra"
1111
)
1212

0 commit comments

Comments
 (0)