docs: remove beta warning #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
GOVERSION: "1.20.7" | |
GOPATH: "/tmp/gopath" | |
GOROOT: "/tmp/go" | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/cache@v3 | |
name: cache golang toolchain | |
id: cache-go-root | |
with: | |
path: /tmp/go | |
key: go${{ env.GOVERSION }}.linux-amd64 | |
- name: download golang toolcahin | |
if: ${{ steps.cache-go-root.outputs.cache-hit != 'true' }} | |
run: | | |
curl -Lo /tmp/go.tgz https://go.dev/dl/go$GOVERSION.linux-amd64.tar.gz | |
tar -C /tmp -xzf /tmp/go.tgz | |
- name: checkout source | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
name: cache go dependencies | |
id: cache-go-deps | |
with: | |
path: /tmp/gopath | |
key: go-deps-${{ hashFiles('**/go.sum') }} | |
- name: configure golang in PATH | |
run: 'echo "$GOROOT/bin:$GOPATH/bin:$PATH" >> $GITHUB_PATH' | |
- name: test library | |
run: go test -vet=all ./... |