Skip to content

Commit

Permalink
build: update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ddlees committed Aug 2, 2022
1 parent 6941edc commit 32e2422
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
name: Build

on:
- push
- pull_request
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
check-latest: true
cache: true

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

build:
runs-on: ubuntu-latest
defaults:
Expand Down

0 comments on commit 32e2422

Please sign in to comment.