Skip to content

Commit a9ad894

Browse files
committed
fixed CI to use setup-go
1 parent 9a4b3d2 commit a9ad894

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ jobs:
1212
name: Test
1313
runs-on: ubuntu-latest
1414
steps:
15-
# https://github.com/actions/setup-go/issues/21#issuecomment-565704236
16-
- name: Install gotip
17-
run: |
18-
git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
19-
cd $HOME/gotip/src
20-
./make.bash
21-
echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
22-
echo "$HOME/gotip/bin:$PATH" >> $GITHUB_PATH
2315
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v1
16+
uses: actions/checkout@v2
17+
- uses: actions/setup-go@v2
18+
with:
19+
go-version: '^1.18'
2520
- name: Declare some variables
2621
id: vars
2722
run: |

0 commit comments

Comments
 (0)