Updates and fixes for unit test workflows
Tag check doesn't run on Go repos, so the Go install has been removed.
Other changes are mostly updates, self-explanatory bug fixes, and some
additional comments.
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I57e33156ffb234e1953e0d307305893593238284
diff --git a/.github/workflows/verify-unit-tests-tag.yaml b/.github/workflows/verify-unit-tests-tag.yaml
index 50454fb..c6f082d 100644
--- a/.github/workflows/verify-unit-tests-tag.yaml
+++ b/.github/workflows/verify-unit-tests-tag.yaml
@@ -1,7 +1,8 @@
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Linux Foundation
-name: Gerrit Verify - Unit Tests
+name: Gerrit Verify - Unit Tests and Tag Check
+# This workflow does not support Go builds
# yamllint disable-line rule:truthy
on:
@@ -67,7 +68,7 @@
concurrency:
# yamllint disable-line rule:line-length
- group: verify-unit-tests-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
+ group: verify-unit-tests-tag-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
cancel-in-progress: true
jobs:
@@ -98,7 +99,7 @@
steps:
- name: Gerrit Checkout
# yamllint disable-line rule:line-length
- uses: lfit/checkout-gerrit-change-action@fc57a3dd3318f31bd34d435d134e30443593eb80 # v1.0.1
+ uses: lfreleng-actions/checkout-gerrit-change-action@8523d768952d9690702b4696a8310d2a84b1be39 # v1.0.1
with:
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }}
gerrit-project: ${{ inputs.GERRIT_PROJECT }}
@@ -113,10 +114,6 @@
python-version: "3.10"
- name: Install virtualenv
run: pip install virtualenv
- - name: Install Go
- uses: actions/setup-go@v5
- with:
- go-version-file: go.mod
- name: Run unit tests
env:
DEST_GOPATH: ${{ inputs.DEST_GOPATH }}
@@ -133,7 +130,7 @@
steps:
- name: Gerrit Checkout
# yamllint disable-line rule:line-length
- uses: lfit/checkout-gerrit-change-action@fc57a3dd3318f31bd34d435d134e30443593eb80 # v1.0.1
+ uses: lfreleng-actions/checkout-gerrit-change-action@8523d768952d9690702b4696a8310d2a84b1be39 # v1.0.1
with:
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }}
gerrit-project: ${{ inputs.GERRIT_PROJECT }}
@@ -149,7 +146,7 @@
vote:
if: ${{ always() }}
# yamllint enable rule:line-length
- needs: [prepare, unit-tests]
+ needs: [prepare, unit-tests, license-and-tag-check]
runs-on: ubuntu-latest
steps:
- name: Get conclusion
diff --git a/.github/workflows/verify-unit-tests.yaml b/.github/workflows/verify-unit-tests.yaml
index 7c82ae3..1bab794 100644
--- a/.github/workflows/verify-unit-tests.yaml
+++ b/.github/workflows/verify-unit-tests.yaml
@@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 The Linux Foundation
name: Gerrit Verify - Unit Tests
+# Requires a go.mod file to be present in the repo
# yamllint disable-line rule:truthy
on: