-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Nightly TICS scan | ||
|
||
on: | ||
schedule: | ||
- cron: '17 15 * * *' # Every day at 15:17 UTC | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
TICS: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install tox pylint flake8 | ||
python3 -m pip install --requirement requirements.txt | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
|
||
- name: go mod download | ||
working-directory: src/mungectl | ||
run: go mod download | ||
|
||
- name: Build and run coverage tests | ||
run: | | ||
make unit | ||
pushd src/mungectl | ||
go build -v -a ./... | ||
popd | ||
- name: TICS GitHub Action | ||
uses: tiobe/tics-github-action@v3 | ||
with: | ||
mode: qserver | ||
project: slurm-snap | ||
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default | ||
branchdir: ${{ env.GITHUB_WORKSPACE }} | ||
ticsAuthToken: ${{ secrets.TICS_AUTH_TOKEN }} | ||
installTics: true | ||
calc: ALL |
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