Skip to content

Commit

Permalink
Add build - test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Rogerson committed Oct 19, 2023
1 parent 1b8ee91 commit 1068aeb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Test
on:
pull_request:
branches: [main]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.20.4
uses: actions/setup-go@v2
with:
go-version: 1.21.1
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get dependencies
run: go mod download

- name: Build
run: go build -v ./...

- name: Test
run: go test ./... -v

0 comments on commit 1068aeb

Please sign in to comment.