fix: goreleaser config in v2.0.10 (#2935) #8687
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: CI | |
on: | |
push: | |
branches: [main, release-*] | |
paths-ignore: ['**.md', '**.png', '**.jpg', '**.svg', '**/docs/**'] | |
pull_request: | |
branches: [ main, release-* ] | |
paths-ignore: ['**.md', '**.png', '**.jpg', '**.svg', '**/docs/**'] | |
schedule: | |
- cron: '0 4 * * *' | |
env: | |
GO_VERSION: '1.20' | |
jobs: | |
test: | |
name: Test | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build manager console assets | |
run: |- | |
make build-manager-console | |
- name: Enable local IPv6 | |
run: |- | |
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 | |
sudo ip -6 addr add fd00::1/64 dev eth0 | |
sudo ip addr | |
- name: Run Unit tests | |
run: |- | |
# switch to installed go | |
sudo ln -sf `which go` `sudo which go` | |
go version | |
sudo go version | |
sudo make test-coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.txt | |
flags: unittests | |
build: | |
name: Build | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build manager console assets | |
run: |- | |
make build-manager-console | |
- name: Build | |
run: |- | |
make build |