-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eecf2fd
commit 01c3f4a
Showing
1 changed file
with
9 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,11 @@ | ||
name: CI Lint Check | ||
# (c) Copyright 2024 Hewlett Packard Enterprise Development LP | ||
name: Copyright check | ||
|
||
on: [pull_request] | ||
jobs: | ||
|
||
ci: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
go: [ '1.21' ] | ||
steps: | ||
- name: Checkout workspace | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Install necessary tools | ||
run: make tools | ||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
|
||
- name: Run unit tests | ||
run: make unit-test | ||
|
||
- name: Build the code | ||
run: make build | ||
|
||
- name: Validate lint | ||
run: make lint | ||
jobs: | ||
copyright-check: | ||
uses: hpe-actions/copyright/.github/workflows/copyright.yml@v2 | ||
with: | ||
fix: true |