Skip to content

Commit

Permalink
ci: add TICS workflow with artifact upload
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Makowski <me+git@petermakowski.io>
  • Loading branch information
petermakowski committed Jun 7, 2024
1 parent 94310e9 commit 6865848
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TICS Report

on:
push:
branches:
- main
- ci-add-tics-workflow

jobs:
tics-report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run TICS Analyzer
uses: tiobe/tics-github-action@v3
with:
mode: qserver
project: maas-ui
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=config
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true
tmpdir: /tmp/tics
branchdir: .

- name: Upload TICS Report
if: always()
uses: actions/upload-artifact@v4
with:
name: tics-report
path: /tmp/tics/ticstmpdir
retention-days: 7

0 comments on commit 6865848

Please sign in to comment.