-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests in parallel and output github formats on workflow (#543)
* Run tests in parallel and output github formats on workflow Signed-off-by: Itxaka <[email protected]> * Fix broken parallel tests We were using a fixed file for the tests which several tests could be accessing at the same time. This fixes it by setting a temp random file at the test start Signed-off-by: Itxaka <[email protected]> * Fix the tests logging to stdout Signed-off-by: Itxaka <[email protected]> * Drop the verbose Signed-off-by: Itxaka <[email protected]> * Fix agent test Signed-off-by: Itxaka <[email protected]> * Let the event consumer create the logfile or whatever Signed-off-by: Itxaka <[email protected]> * Drop Focus Signed-off-by: Itxaka <[email protected]> --------- Signed-off-by: Itxaka <[email protected]>
- Loading branch information
Showing
7 changed files
with
41 additions
and
45 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 |
---|---|---|
|
@@ -13,21 +13,20 @@ jobs: | |
unit-tests: | ||
strategy: | ||
matrix: | ||
go-version: [ "1.23-bookworm" ] | ||
go-version: [ "1.23" ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install earthly | ||
uses: Luet-lab/luet-install-action@v1 | ||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
repository: quay.io/kairos/packages | ||
packages: utils/earthly | ||
go-version: '${{ matrix.go-version }}' | ||
- name: Run tests | ||
run: | | ||
earthly -P +test --GO_VERSION=${{ matrix.go-version }} | ||
go run github.com/onsi/ginkgo/v2/ginkgo run -p --github-output --covermode=atomic --coverprofile=coverage.out --race -r ./... | ||
- name: Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
|
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
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
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
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
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
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