Skip to content

Commit

Permalink
build: add a simple github build action
Browse files Browse the repository at this point in the history
A build job is now configured on pr and push event which runs build and unit
tests on all the Go source files.
  • Loading branch information
zhouhaibing089 committed Mar 9, 2023
1 parent 5acd1ae commit f3f1ec7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 363 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

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

- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ebay/releaser

go 1.17
go 1.19

require (
github.com/Masterminds/sprig/v3 v3.2.3
Expand Down
Loading

0 comments on commit f3f1ec7

Please sign in to comment.