Integrate iam #73
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- feature_* | |
pull_request: | |
branches: | |
- main | |
- develop | |
- feature_* | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: "1.21" | |
- name: Build | |
run: | | |
sudo apt update --fix-missing | |
sudo apt install -y libxen-dev | |
go build | |
- name: Test | |
run: | | |
sudo apt-get install -y wondershaper | |
sudo env "PATH=$PATH" go test -tags=test -v ./... -failfast -coverprofile=coverage.out -covermode=atomic | |
sudo chmod 666 coverage.out | |
- name: Code coverage | |
run: bash <(curl -s https://codecov.io/bash) | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: "v1.55" |