-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial testing for shared * Adapt directories to test * Fix paths for testing * Add dependency between jobs * Fix caching problem with actions * Refactor code and add testcontainers * Update typo in .github/workflows/test.yml Co-authored-by: Matthias Linhuber <[email protected]> * Add tests for CloneContainer * Add 'HadesAPI' directory to test workflow matrix --------- Co-authored-by: Matthias Linhuber <[email protected]>
- Loading branch information
1 parent
15c152e
commit 5d63e01
Showing
27 changed files
with
1,207 additions
and
152 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ on: | |
release: | ||
types: | ||
- created | ||
|
||
workflow_run: | ||
workflows: ["Go Test"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Go Test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
directory: [ 'shared', 'HadesCloneContainer', 'HadesAPI' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22 | ||
cache-dependency-path: "**/*.sum" | ||
- name: Install dependencies | ||
run: cd ${{ matrix.directory }} && go mod download | ||
- name: Test with Go | ||
run: go test ./${{ matrix.directory }}/... -json > TestResults-${{ matrix.directory }}.json | ||
- name: Upload Go test results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Go-results-${{ matrix.directory }} | ||
path: TestResults-${{ matrix.directory }}.json |
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
Oops, something went wrong.