Skip to content

Bump actions/upload-artifact from 4.3.3 to 4.5.0 #53

Bump actions/upload-artifact from 4.3.3 to 4.5.0

Bump actions/upload-artifact from 4.3.3 to 4.5.0 #53

Workflow file for this run

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: workflowresultparser
path: ./tools/workflowresultparser/
runs-on: ubuntu-latest
name: ${{ matrix.project.name }} unit tests
steps:
- name: Checkout the Repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Install gotestloghelper
run: cd lib && make gotestloghelper_build
- name: Install Nix
uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26
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@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: test-logs
path: /tmp/gotest.log