diff --git a/.github/workflows/dst.yml b/.github/workflows/dst.yml new file mode 100644 index 0000000000..98d4da83b0 --- /dev/null +++ b/.github/workflows/dst.yml @@ -0,0 +1,36 @@ +name: DST + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + run: | + which go + go env + curl -L -o go-custom-linux-amd64.tar.gz https://github.com/asubiotto/go/releases/download/v0.0.1-test/go-custom-linux-amd64.tar.gz + tar -xzf go-custom-linux-amd64.tar.gz + sudo mv go /usr/local/go + # Prepend, rather than append the custom binary (otherwise the default + # go binary will be used). + echo "/usr/local/go/bin" >> $GITHUB_PATH + echo "GOROOT=/usr/local/go" >> $GITHUB_ENV + sudo chmod -R 755 /usr/local/go + go version + go env + which go + - name: Run tests + run: | + which go + go version + go env + go clean -cache -modcache -i -r + go test ./...