Skip to content

Gha integration (#393) #1

Gha integration (#393)

Gha integration (#393) #1

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
name: Master workflow
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go/go.mod'
- name: Build
run: go build ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go/go.mod'
- uses: golangci/golangci-lint-action@v6
with:
version: latest
args: -v --config .golangci.yml --timeout=15m
unit-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./go
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go/go.mod'
- name: Unit tests
run: go test -race github.com/onosproject/onos-api/go/...
license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: reuse lint
uses: fsfe/reuse-action@v3
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