Skip to content

Commit

Permalink
add common github workflow (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi authored Sep 21, 2023
1 parent e024917 commit 6ecdf26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 129 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,14 @@ on:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Build
run: go build -v ./...
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/[email protected]
with:
go-version: 1.20.x
- run: |
# shellcheck disable=2046
go test -v -coverprofile=profile.cov $(go list ./... | grep -v /cloudbuild) # ignore cloudbuild tests
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
go:
uses: openconfig/common-ci/.github/workflows/go.yml@c2294c3c86c90e75e58c24a40d6f7f3364bbae9d
with:
coverage-excludes-regex: /cloudbuild
tests-excludes-regex: /cloudbuild
race-tests-excludes-regex: /cloudbuild
skip-race-tests: true
go-versions: "['1.20']"

linter:
uses: openconfig/common-ci/.github/workflows/linter.yml@c2294c3c86c90e75e58c24a40d6f7f3364bbae9d
60 changes: 0 additions & 60 deletions .github/workflows/golangci-lint.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/linter.yml

This file was deleted.

0 comments on commit 6ecdf26

Please sign in to comment.