Skip to content

Upload TICS report

Upload TICS report #25

Workflow file for this run

name: Upload TICS report
on:
schedule:
- cron: "0 22 * * 5"
jobs:
TICS:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn install --immutable
- run: yarn test --coverage.enabled true
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: juju-dashboard-coverage
path: coverage
- name: Produce TICS report
shell: bash
run: |
set -x
export TICSAUTHTOKEN=${{ secrets.TICSAUTHTOKEN }}
curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/" > install_tics.sh
. ./install_tics.sh
TICSQServer -project juju-dashboard -tmpdir /tmp/tics -branchdir .