Skip to content

update Github

update Github #20

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
with:
path: './src/github.com/kevinburke/nacl'
# staticcheck needs this for GOPATH
- run: echo "GOPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- run: echo "GO111MODULE=off" >> $GITHUB_ENV
- run: echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
- name: Download dependencies
run: go get -t -v ./...
working-directory: './src/github.com/kevinburke/nacl'
- name: Run tests
run: make vet check race-test
working-directory: './src/github.com/kevinburke/nacl'