Skip to content

Commit

Permalink
Enable GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
migueleliasweb committed Aug 5, 2021
1 parent 1a1c76c commit a372110
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: runtests

jobs:
test:
strategy:
matrix:
go-version: [1.16.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

- uses: actions/setup-go@v2
with:
go-version: 1.16

- uses: actions/checkout@v2

- name: Run go fmt
run: diff -u <(echo -n) <(gofmt -d -s .)

- name: Run go vet
run: go vet ./...

- name: Run go test
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
2 changes: 2 additions & 0 deletions main.go → gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions src/mock/endpointpattern.go
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a372110

Please sign in to comment.