Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 5 additions & 27 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: build-test

on:
push:
Expand All @@ -7,10 +7,10 @@ on:
branches: [ main ]

jobs:

build:
name: Build
build-test:
name: Build & Test
runs-on: ubuntu-latest
timeout-minutes: 1
steps:

- name: Set up Go 1.19
Expand All @@ -33,33 +33,11 @@ jobs:
- name: Build
run: go build -v .

test:
name: Test
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.19
uses: actions/setup-go@v5
with:
go-version: ^1.19
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi

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

- name: Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
Loading