build: add license compliance job (#8)

* build: add license compliance job

* build: add codeql

* build: add Makefile

* build: upload to staging as well

* fix typo

* fix: address feedback
This commit is contained in:
joseph-sentry
2024-03-19 11:57:46 -04:00
committed by GitHub
parent b017189b0d
commit 2b4994ec0f
3 changed files with 22 additions and 6 deletions
+4 -4
View File
@@ -12,12 +12,12 @@ name: "CodeQL"
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [ main ]
schedule:
- cron: '24 6 * * 5'
- cron: '24 6 * * 5' # Every Friday at 6:24AM
jobs:
analyze:
@@ -37,7 +37,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
@@ -2,7 +2,7 @@ name: Enforce License Compliance
on:
pull_request:
branches: [main, master]
branches: [main]
jobs:
enforce-license-compliance:
+17 -1
View File
@@ -28,4 +28,20 @@ jobs:
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true
token: ${{ secrets.CODECOV_ORG_TOKEN }}
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Upload test results to Codecov (calculator) (staging)
uses: ./
with:
files: ./demo/calculator/junit.xml
flags: ${{ matrix.os }}
verbose: true
url: ${{ secrets.CODECOV_STAGING_URL }}
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
- name: Upload test results to Codecov (demo) (staging)
uses: ./
with:
url: ${{ secrets.CODECOV_STAGING_URL }}
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true