Skip to content

Commit

Permalink
improve and extend CI pipeline
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mxmehl committed Jul 20, 2023
1 parent 4f28048 commit 7247931
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/reuse.yml → .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7247931

Please sign in to comment.