Migrate msi/subnet client to track2 one #3603
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: Linux Tests | |
on: | |
pull_request: {} | |
push: {} | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.18' | |
check-latest: true | |
id: go | |
- name: Run unit test | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt-get update | |
sudo apt-get install blobfuse | |
go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/... | |
- name: Run build test | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
make | |
- name: Make container test | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
make container | |
- name: Make blobfuse-proxy test | |
run: | | |
export PATH=$PATH:$HOME/.local/bin | |
make blobfuse-proxy | |
- name: Install goveralls | |
run: go install github.com/mattn/goveralls@latest | |
- name: Send coverage | |
env: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: goveralls -coverprofile=profile.cov -service=github |