Merge pull request #115 from redhat-cne/dependabot/pip/message-parser… #492
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
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.19' | |
- 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.48.0 | |
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.19' | |
- name: tidy | |
run: make deps-update | |
- name: Run Test Scripts | |
run: | | |
make gha |