Release 7.3.1 #146
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@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21" | |
- name: Build | |
run: | | |
sudo apt install -y libefivar-dev libefiboot-dev libblkid-dev | |
go build | |
- name: Test | |
run: | | |
sudo apt-get install -y parted dosfstools | |
sudo env "PATH=$PATH" go test -v $(go list ./... | grep -v "/vendor\|ssh*\|efi\|systemdchecker") -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" |