Skip to content

bind port mappings to HostIP, if specified #68

bind port mappings to HostIP, if specified

bind port mappings to HostIP, if specified #68

Workflow file for this run

---
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
core:
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x]
platform: [ubuntu-latest]
name: Build
runs-on: ${{ matrix.platform }}
env:
GOBIN: /home/runner/.local/bin
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Amend Environment Path
run: |
mkdir -p /home/runner/.local/bin
echo "/home/runner/.local/bin" >> $GITHUB_PATH
- name: Install prerequisites
run: |
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install make
sudo apt-get --assume-yes install libnss3-tools
sudo apt-get --assume-yes install nftables
sudo nft --version
sudo nft -a list ruleset
- name: Install Go modules
run: |
make dep
- name: Run build
run: |
make
- name: Run tests
run: |
make test
- name: Generate coverage report
run: make coverage
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: Upload coverage report
path: |
.coverage/**/*.html
.coverage/**/*.out