Skip to content

switch CI to use main -- get those tests back.. #824

switch CI to use main -- get those tests back..

switch CI to use main -- get those tests back.. #824

Workflow file for this run

---
name: Build
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- "main"
# 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