From 7247931f93e7907710f73a41016e5d40c3dfe384 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Thu, 20 Jul 2023 12:03:58 +0200 Subject: [PATCH] improve and extend CI pipeline * also test using the latest major version of the action * only check on push to master branch (will be renamed) * add --lint flag to one run --- .github/workflows/{reuse.yml => selftest.yml} | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) rename .github/workflows/{reuse.yml => selftest.yml} (52%) diff --git a/.github/workflows/reuse.yml b/.github/workflows/selftest.yml similarity index 52% rename from .github/workflows/reuse.yml rename to .github/workflows/selftest.yml index 86e426c..e229f42 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/selftest.yml @@ -4,10 +4,15 @@ name: REUSE Compliance Check -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: - test: + # Use local file to test against itself + test-self: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -18,8 +23,18 @@ jobs: - name: REUSE lint uses: ./ with: - args: --include-submodules lint + args: --include-submodules lint --json - name: REUSE SPDX SBOM uses: ./ with: args: spdx + + # Use latest major version of the action + test-majorversion: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v2 + with: + args: lint --json