Skip to content

Commit

Permalink
test: use workflows
Browse files Browse the repository at this point in the history
Signed-off-by: James Elliott <[email protected]>
  • Loading branch information
james-d-elliott committed Feb 8, 2024
1 parent fee8614 commit 56c2ce4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Go
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.21'
- '1.22'
fail-fast: false
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
#- name: Build
# run: go build -v ./...
- name: Test
run: go test -v ./...

0 comments on commit 56c2ce4

Please sign in to comment.