Skip to content
Open
Show file tree
Hide file tree
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
49 changes: 5 additions & 44 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,11 @@ on:
pull_request:

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: CGO_ENABLED=1 go build -o build/_output/aether-roc-api ./cmd/aether-roc-api
build-and-test:
uses: onosproject/.github/.github/workflows/go-build-test.yml@main

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: golangci/golangci-lint-action@v4.0.0
with:
version: latest
args: -v --config ./.golangci.yml --timeout=15m

unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Unit tests
run: |
CGO_ENABLED=1 go test -race github.com/onosproject/aether-roc-api/pkg/...
CGO_ENABLED=1 go test -race github.com/onosproject/aether-roc-api/cmd/...
uses: onosproject/.github/.github/workflows/go-lint.yml@main

docker-build:
runs-on: ubuntu-latest
Expand All @@ -58,17 +29,7 @@ jobs:
rm -rf vendor

license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: reuse lint
uses: fsfe/reuse-action@v3
uses: onosproject/.github/.github/workflows/license-check.yml@main

fossa-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: FOSSA scan
uses: fossa-contrib/fossa-action@v3
with:
fossa-api-key: 6d304c09a3ec097ba4517724e4a4d17d
uses: onosproject/.github/.github/workflows/fossa-scan.yml@main
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linters:
- dogsled
- unconvert
# - nakedret
- copyloopvar
- exportloopref
issues:
exclude-use-default: false
exclude:
Expand Down
Loading