WIP: machineconfgiuration: sync types #3477
Workflow file for this run
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: Test Incoming Changes | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- main | |
- 'release-\d.\d\d' | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
env: | |
SHELL: /bin/bash | |
steps: | |
- name: Set up Go 1.23 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.2 | |
- uses: actions/checkout@v4 | |
- name: Run lint | |
run: make lint | |
test: | |
runs-on: ubuntu-22.04 | |
env: | |
SHELL: /bin/bash | |
steps: | |
- name: Set up Go 1.23 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.2 | |
- uses: actions/checkout@v4 | |
- name: Run unit tests | |
run: make test | |
- name: Generate test coverage | |
run: go test ./pkg/... -coverprofile=./cover.out -covermode=atomic -coverpkg=./... | |
- name: Check test coverage | |
uses: vladopajic/go-test-coverage@v2 | |
with: | |
# Configure action using config file (option 1) | |
config: ./.testcoverage.yml | |
git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }} | |
git-branch: badges |