feat: rewrite vmaas repos endpoint in go #441
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: tests | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
test: | |
name: test | |
strategy: | |
matrix: | |
go-version: [1.21.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- run: sudo apt install -y librpm-dev rpm | |
# cache downloaded modules and build cache | |
- uses: actions/cache@v4 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-${{ matrix.go-version }}- | |
# run tests | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v4 | |
- run: | | |
go test -race -coverprofile=coverage.txt -covermode=atomic ./... | |
- uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.txt | |
flags: unittests | |
name: codecov-umbrella | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
# fuzz: | |
# name: fuzz | |
# strategy: | |
# matrix: | |
# go-version: [1.18.x, 1.19.x] | |
# os: [ubuntu-latest] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - run: sudo apt install -y librpm-dev rpm | |
# # cache downloaded modules and build cache | |
# - uses: actions/cache@v3 | |
# with: | |
# # In order: | |
# # * Module download cache | |
# # * Build cache (Linux) | |
# # * Fuzz cache (Linux) | |
# path: | | |
# ~/go/pkg/mod | |
# ~/.cache/go-build | |
# ~/.cache/fuzz | |
# key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
# restore-keys: | | |
# ${{ runner.os }}-go-${{ matrix.go-version }}- | |
# # run tests | |
# - uses: actions/setup-go@v3 | |
# with: | |
# go-version: ${{ matrix.go-version }} | |
# - uses: actions/checkout@v3 | |
# - run: | | |
# go test -fuzz Fuzz -fuzztime 30s ./vmaas |