Refactor Flakeguard reports: Split commands and use data and presentation layers #5889
Workflow file for this run
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
name: (all packages) Unit tests | |
on: | |
push: | |
tags: | |
- v* | |
pull_request: | |
jobs: | |
unit: | |
strategy: | |
fail-fast: false | |
matrix: | |
project: | |
- name: lib | |
path: ./lib/ | |
- name: gotestloghelper | |
path: ./tools/gotestloghelper/ | |
- name: testlistgenerator | |
path: ./tools/testlistgenerator/ | |
- name: ecrimagefetcher | |
path: ./tools/ecrimagefetcher/ | |
- name: ghlatestreleasechecker | |
path: ./tools/ghlatestreleasechecker/ | |
- name: asciitable | |
path: ./tools/asciitable/ | |
- name: flakeguard | |
path: ./tools/flakeguard/ | |
- name: workflowresultparser | |
path: ./tools/workflowresultparser/ | |
runs-on: ubuntu-latest | |
name: ${{ matrix.project.name }} unit tests | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install gotestloghelper | |
run: cd lib && make gotestloghelper_build | |
- name: Install Nix | |
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Load Nix | |
run: | | |
nix develop -c sh -c "cd ${{ matrix.project.path }} && \ | |
go mod download" | |
- name: Run Tests | |
run: | | |
PATH=$PATH:$(go env GOPATH)/bin | |
export PATH | |
set -euo pipefail | |
# disabled, because we want to use a multiline output of go list command | |
# shellcheck disable=SC2046 | |
nix develop -c sh -c "cd ${{ matrix.project.path }} && \ | |
make test_unit" | |
- name: Publish Artifacts | |
if: failure() | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: test-logs | |
path: /tmp/gotest.log |