Files
test-results-action/.github/workflows/main.yml
joseph-sentry 2b4994ec0f 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
2024-03-19 11:57:46 -04:00

47 lines
1.5 KiB
YAML

name: Workflow for Codecov Action
on: [pull_request]
jobs:
run:
permissions: read-all
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Upload test results to Codecov (calculator)
uses: ./
with:
files: ./demo/calculator/junit.xml
flags: ${{ matrix.os }}
verbose: true
token: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Upload test results to Codecov (demo)
uses: ./
with:
files: ./demo/coverage-test/junit.xml
flags: ${{ matrix.os }}
verbose: true
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