Skip to content

update to v2

update to v2 #819

Workflow file for this run

---
name: Build
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- "master"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: apt-get
run: |
sudo apt-get update
sudo apt-get install libgl1-mesa-dev xorg-dev mesa-vulkan-drivers
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- run: go build ./...
- run: go test -tags=multinet -race ./...
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: apt-get
run: |
sudo apt-get update
sudo apt-get install libgl1-mesa-dev xorg-dev mesa-vulkan-drivers
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: Generate coverage report
run: go test -tags=multinet ./... -coverprofile=coverage.txt -covermode=atomic -timeout=20m
- name: Upload coverage report
uses: codecov/codecov-action@v3