Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vadiminshakov committed Sep 25, 2023
1 parent 71a185f commit a002697
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# This workflow contains a single job called "build"
run-tests:
# The type of runner that the job will run on
runs-on: golang-latest
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -24,4 +24,4 @@ jobs:

# Runs a single command using the runners shell
- name: Run tests
run: make prepare && make tests
run: make upgrade && make prepare && make tests
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ show-trace-client:
echo "please open http://localhost:9411/zipkin/dependency"

tests:
@go test ./...
@go test ./...

upgrade:
@sudo apt-get update
@wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
@sudo tar -xvf go1.21.0.linux-amd64.tar.gz
@sudo mv go /usr/local
@export GOROOT=/usr/local/go
@export GOPATH=$HOME/go
@export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
@source ~/.profile

0 comments on commit a002697

Please sign in to comment.