Skip to content

Commit

Permalink
github: Adds Tiobe TICS workflow after tests pass
Browse files Browse the repository at this point in the history
Collects coverage data and merges it.

Signed-off-by: Thomas Parrott <[email protected]>
  • Loading branch information
tomponline committed Sep 9, 2024
1 parent 0427f63 commit 16e3953
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,45 @@ jobs:
name: coverage-${{ matrix.go }}-${{ matrix.suite }}-${{ matrix.backend }}
path: /home/runner/work/lxd/coverage

tics:
env:
TICSAUTH: ${{ secrets.TICS_AUTH_ }}
name: Tiobe TICS
runs-on: ubuntu-22.04
needs: code-tests
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# A non-shallow clone is needed for the Differential ShellCheck
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x

- name: Download coverage data
uses: actions/download-artifact@v4
with:
pattern: coverage-*
path: /home/runner/work/lxd/coverage
merge-multiple: true

- name: Install dependencies
run: |
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
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run TICS
run: |
ls -lr /home/runner/work/lxd/coverage
TICSQServer -project LXD -tmpdir /tmp/tics -branchdir /home/runner/work/lxd
client:
name: Client
strategy:
Expand Down

0 comments on commit 16e3953

Please sign in to comment.