Use go.work for CI workflows

This commit is contained in:
katexochen 2022-09-12 17:37:07 +02:00 committed by Paul Meyer
parent ddabf974d5
commit ebd9472866
3 changed files with 11 additions and 7 deletions

View file

@ -39,10 +39,17 @@ jobs:
go-version: "1.19.1"
cache: true
- name: Get Go submodules
id: submods
shell: bash
run: |
mods=$(go list -f '{{.Dir}}/...' -m | xargs)
echo "Found mods: $mods"
echo "::set-output name=submods::${mods}"
- name: golangci-lint
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc
with:
skip-pkg-cache: true
skip-build-cache: true
working-directory: ./... ./hack/... ./operators/constellation-node-operator/...
args: --timeout=15m
args: --timeout=15m ${{ steps.submods.outputs.submods }}

View file

@ -38,7 +38,6 @@ jobs:
- name: Create and populate build folder
run: mkdir build && cd build && cmake ..
# Runs all test targets starting with "unit-"
- name: Unit Tests
run: ctest -j $(nproc) -R unit-
run: ctest -j $(nproc) -R unit
working-directory: build