update to v2 #816
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: 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 |