Skip to content

Commit

Permalink
Merge pull request #122 from openconfig/use-common-workflow
Browse files Browse the repository at this point in the history
Use common workflow
  • Loading branch information
wenovus authored Aug 15, 2023
2 parents 43c4f66 + f430a4c commit 0b1901f
Showing 1 changed file with 7 additions and 37 deletions.
44 changes: 7 additions & 37 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,12 @@ on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.18', '1.x']

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
id: go

- name: Build
run: make build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.x'

- name: Test
run: make test

- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
go:
uses: openconfig/common-ci/.github/workflows/basic_go.yml@c2294c3c86c90e75e58c24a40d6f7f3364bbae9d
with:
static-analysis-excludes-regex: exampleoc
skip-gofmt: true
skip-staticcheck: true

generate:
runs-on: ubuntu-latest
Expand All @@ -51,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.x'
go-version: 'stable'

- name: Generate and Check Diff
# Ignore whitespace because goimports seems to modifying the generated commands inconsistently.
Expand Down

0 comments on commit 0b1901f

Please sign in to comment.