Skip to content

Commit

Permalink
ci: add TICS workflow with artifact upload MAASENG-3276
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Makowski <[email protected]>
  • Loading branch information
petermakowski committed Jun 17, 2024
1 parent 8bd30c2 commit 25b8949
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: CYPRESS_INSTALL_BINARY=0 yarn install
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: CYPRESS_INSTALL_BINARY=0 yarn install
Expand Down Expand Up @@ -83,6 +83,31 @@ jobs:
id: deployment
uses: actions/deploy-pages@v4

tics-report:
name: TICS Report
runs-on: ubuntu-latest
needs: test
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

build:
name: Build
timeout-minutes: 15
Expand All @@ -98,7 +123,7 @@ jobs:
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
node-version-file: ".nvmrc"
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: CYPRESS_INSTALL_BINARY=0 yarn install
Expand Down

0 comments on commit 25b8949

Please sign in to comment.