Skip to content

Merge pull request #232 from natesales/dependabot/go_modules/golang.o… #915

Merge pull request #232 from natesales/dependabot/go_modules/golang.o…

Merge pull request #232 from natesales/dependabot/go_modules/golang.o… #915

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Install bgpq4 and bird2
run: |
wget http://ftp.us.debian.org/debian/pool/main/b/bgpq4/bgpq4_0.0.6-2_amd64.deb
sudo dpkg -i bgpq4*.deb
sudo apt install -y bird2
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: -E gosec
- run: go get -v -t -d ./...
- run: sudo chown $(whoami):$(whoami) /run/bird/bird.ctl
- run: sudo chown -R $(whoami):$(whoami) /etc/bird/
- run: go generate -x
- run: go build -v .
- run: make dep
- run: make test-setup
- run: make test
- name: Upload coverage report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
- run: make test-teardown