mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-10-10 09:38:25 -04:00
Use go.work for CI workflows
This commit is contained in:
parent
ddabf974d5
commit
ebd9472866
3 changed files with 11 additions and 7 deletions
11
.github/workflows/test-lint.yml
vendored
11
.github/workflows/test-lint.yml
vendored
|
@ -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 }}
|
||||
|
|
3
.github/workflows/test-unittest.yml
vendored
3
.github/workflows/test-unittest.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue