Skip to content

Commit

Permalink
fix github workflow setup
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Jin <[email protected]>
  • Loading branch information
jnyi committed Nov 6, 2024
1 parent 8ad91d5 commit f77597c
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 147 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,43 +127,6 @@ jobs:
- name: Linting & vetting
run: make go-lint

unit:
strategy:
fail-fast: false
runs-on: ubuntu-latest
name: Thanos unit tests
env:
GOBIN: /home/runner/go/bin
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go.
uses: actions/setup-go@v3
with:
go-version: 1.23.x

- name: Install bingo and configure PATH
run: |
go install github.com/bwplotka/bingo@latest
ls -l $GOPATH/bin
echo $PATH
- name: Install Prometheus using bingo
run: |
bingo get prometheus
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/.cache/golangci-lint
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Run unit tests
run: make test-local

codespell:
runs-on: ubuntu-latest
name: Check misspelled words
Expand Down
Loading

0 comments on commit f77597c

Please sign in to comment.