Skip to content

Commit

Permalink
Added GitHub action for building & running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava authored Nov 13, 2021
1 parent aec5dab commit 50e2877
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

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

jobs:

build:
name: Build & Test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17

- name: Check out code
uses: actions/checkout@v2

- name: Download module dependencies
env:
GOPROXY: "https://proxy.golang.org"
run: go mod download

- name: Test
run: go test -v -coverprofile=coverage.txt ./...

0 comments on commit 50e2877

Please sign in to comment.