Skip to content

onboarding codeowners-validator action #5

onboarding codeowners-validator action

onboarding codeowners-validator action #5

Workflow file for this run

name: Pull request
on:
pull_request:
branches: [ main ]
env:
GO111MODULE: on
INSTALL_DEPS: true
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || 'branch' }} # scope to for the current workflow
cancel-in-progress: ${{ github.event_name == 'pull_request' }} # cancel only PR related jobs
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: "Build and unit-test"
run: make test-unit
- name: "Hammer unit-test"
run: make test-hammer
code-quality-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
- name: "Code Quality Analysis"
run: make test-lint