Skip to content

Commit

Permalink
Merge pull request #4 from slavabobik/patch-1
Browse files Browse the repository at this point in the history
Added GitHub action for building & running tests
  • Loading branch information
aermolaev authored Nov 14, 2021
2 parents aec5dab + 50e2877 commit 82f5d64
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 82f5d64

Please sign in to comment.