Skip to content

Update deps. Upgrade go version #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Release
permissions:
contents: write
pull-requests: read
on:
push:
tags:
Expand All @@ -8,11 +11,17 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@master
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: "marvinpinto/action-automatic-releases@latest"
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up environment
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}

- name: Publish GitHub release
uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
48 changes: 26 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
name: Tests
on: push
permissions:
contents: read
pull-requests: read

on:
push:

jobs:
golangci:
name: lint
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- uses: actions/checkout@v3
go-version: '1.24'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.51.2
args: --timeout=3m
version: v1.64.6
args: --timeout=5m
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x
- name: checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: golang tests
go-version: 1.24.x

- name: Golang tests
env:
GO111MODULE: on
BCD_ENV: production
run: |
go mod download
go test ./...
go test -p 8 ./...
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ linters:
- ineffassign
- typecheck
- containedctx
- tenv
- usetesting
- unused
2 changes: 1 addition & 1 deletion config/parsing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Test_expandTransformer_Transform(t *testing.T) {
}
}()
for key, value := range tt.envs {
os.Setenv(key, value)
t.Setenv(key, value)
}

transformer := &expandTransformer{
Expand Down
Loading