Translations update from Fedora Weblate #2991
Workflow file for this run
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: "Analyze (target)" | |
on: | |
pull_request_target: | |
branches: [master, sssd-2-7, sssd-2-8, sssd-2-9] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
cppcheck: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
persist-credentials: false | |
- name: Perform cppcheck analysis | |
# v0.0.11 is the latest release but we need a later commit | |
uses: linuxdeepin/action-cppcheck@9ef62c4ec8cd5660952cd02c58b83fa57c16a42b | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
pull_request_id: ${{ github.event.pull_request.number }} | |
allow_approve: false | |
enable_checks: "warning,unusedFunction,missingInclude" | |
comment_result: false | |
covscan: | |
runs-on: covscan | |
permissions: | |
contents: read | |
timeout-minutes: 1440 | |
steps: | |
- name: Checkout target branch | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.base_ref }} | |
path: target | |
- name: Checkout pull request branch | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
path: pr | |
- name: Build source rpm - ${{ github.base_ref }} | |
id: target | |
uses: ./target/.github/actions/build-sssd-srpm | |
with: | |
working-directory: target | |
version: ${{ github.base_ref }} | |
- name: Build source rpm - pr${{ github.event.pull_request.number }} | |
id: pr | |
uses: ./target/.github/actions/build-sssd-srpm | |
with: | |
working-directory: pr | |
version: pr${{ github.event.pull_request.number }} | |
- name: Run covscan | |
run: | | |
run-covscan --base-srpm "${{ steps.target.outputs.path }}" --srpm "${{ steps.pr.outputs.path }}" --output-dir logs | |
- name: Print result | |
uses: next-actions/print-logs@master | |
if: always() | |
with: | |
working-directory: logs | |
files: | | |
added.err | |
*.err | |
- name: Upload artifacts | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: ignore | |
name: covscan | |
path: | | |
./logs/*.err | |
result: | |
name: All tests are successful | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
needs: [cppcheck, covscan] | |
steps: | |
- name: Fail on failure | |
if: ${{ needs.cppcheck.result != 'success' || needs.covscan.result != 'success' }} | |
run: exit 1 |