forked from redhat-cne/hw-event-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.09 KB
/
hw-event-proxy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: hw-event-proxy
on: [push, pull_request]
defaults:
run:
working-directory: ./hw-event-proxy
jobs:
golangci:
name: Linting
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: tidy
run: go mod tidy
- name: golangci-lint
uses: golangci/[email protected]
with:
# Caching conflicts happen in GHA, so just disable for now
skip-pkg-cache: true
skip-build-cache: true
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.53.3
args: --timeout 3m0s
working-directory: ./hw-event-proxy
unit-tests:
name: Unit Tests
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: tidy
run: make deps-update
- name: Run Test Scripts
run: |
make gha