feat: Lint all RPM files before exiting due to failure #62
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: Test Action | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '**.txt' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '**.txt' | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
push-ghcr: | |
name: Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Perform checkout | |
uses: actions/checkout@v4 | |
- name: Fetch spec | |
run: | | |
wget https://raw.githubusercontent.com/ublue-os/packages/main/staging/devpod/devpod.spec | |
wget https://raw.githubusercontent.com/ublue-os/packages/main/staging/prompt/prompt.spec | |
- name: Test rpmlint (single file) | |
uses: ./ | |
with: | |
rpmfiles: ./devpod.spec | |
permissive: 'true' | |
- name: Test rpmlint (multiple files) | |
uses: ./ | |
with: | |
rpmfiles: './devpod.spec, ./prompt.spec' | |
permissive: 'true' |