Skip to content

Commit

Permalink
Merge pull request #29 from opencost/atm/restructure-testharness
Browse files Browse the repository at this point in the history
repro on branch
  • Loading branch information
ameijer authored Oct 2, 2024
2 parents d9ed7d1 + 6ec64ff commit 5585492
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/run-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: prep workspace
run: |
just init-workspace
- name: run integration tests
run: |
just integration-test-all-plugins
Expand Down
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ build-all-plugins: clean test-all-plugins
mkdir -p ./build
find ./pkg/plugins -type f -iname "go.mod" -print0 | {{commonenv}} VERSION={{version}} COMMIT={{commit}} xargs -0 -I{} ./tools/build-plugins {}

init-workspace:
go work init
find . -type f -iname "go.mod" -print0 | xargs -0 dirname | xargs -I{} go work use {}

integration-test-all-plugins:
echo "pluginPaths: {{pluginPaths}}"
{{commonenv}} go run pkg/test/pkg/executor/main/main.go --plugins={{pluginPaths}}
Expand Down

0 comments on commit 5585492

Please sign in to comment.