Add webhook to prevent SubnetSet/Subnet deletion with stale SubnetPor… #38
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: Makefile CI | |
on: | |
push: | |
branches: | |
- main | |
- 'v[0-9].[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- main | |
- 'v[0-9].[0-9]+.[0-9]+' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Run golangci-lint | |
run: make golangci | |
- name: Run build | |
run: make build | |
- name: Run test | |
run: make test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
file: ./.coverage/coverage-unit.out | |
flags: unit-tests | |
name: codecov-unit-test |