Skip to content

Commit

Permalink
Merge pull request #19 from Infisical/daniel/build-tests
Browse files Browse the repository at this point in the history
feat: basic build tests
  • Loading branch information
DanielHougaard authored Oct 28, 2024
2 parents 97d50fa + cf4f874 commit 0edc4a5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/build-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Lint

# Basic concurrency per branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version-file: "go.mod"
cache: false
- run: go mod download
- run: go build -v .
- name: Run linters
uses: golangci/golangci-lint-action@5f1fec7010f6ae3b84ea4f7b2129beb8639b564f # v3.5.0
with:
version: latest
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func (c *InfisicalClient) setPlainAccessToken(accessToken string) {

func NewInfisicalClient(context context.Context, config Config) InfisicalClientInterface {
client := &InfisicalClient{}

setDefaults(&config)
client.UpdateConfiguration(config) // set httpClient and config

Expand Down

0 comments on commit 0edc4a5

Please sign in to comment.