Skip to content

Commit

Permalink
Add CI step
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Petkovski <[email protected]>
  • Loading branch information
fpetkovski committed Aug 16, 2024
1 parent e86e200 commit b55845d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,33 @@ jobs:
- name: Cross build check
run: make crossbuild

build-stringlabels:
runs-on: ubuntu-latest
name: Go build with -tags=stringlabels
env:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x

- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cross build check
run: go build -tags=stringlabels ./cmd/thanos

lint:
runs-on: ubuntu-latest
name: Linters (Static Analysis) for Go
Expand Down

0 comments on commit b55845d

Please sign in to comment.