chore(ci): clean up ci-badger-test workflow (#1899)

Remove redundant checkout and default go version.
This commit is contained in:
Joshua Goldstein
2023-03-02 22:40:17 +00:00
committed by GitHub
parent c18ccd28ea
commit 8fcc717639
2 changed files with 2 additions and 6 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ jobs:
- name: Get Go Version
run: |
#!/bin/bash
DEFAULT_VERSION="1.19"
GOVERSION=$({ [ -f .go-version ] && cat .go-version; } || echo $DEFAULT_VERSION)
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v3
+1 -4
View File
@@ -15,13 +15,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Get Go Version
run: |
#!/bin/bash
DEFAULT_VERSION="1.19"
GOVERSION=$({ [ -f .go-version ] && cat .go-version; } || echo $DEFAULT_VERSION)
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
- name: Setup Go
uses: actions/setup-go@v3