Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@
name: Unit Tests

on:
workflow_run:
workflows: [Build and Test]
types:
- completed
workflow_dispatch:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- features/*
- release/*

permissions: {}

concurrency:
group: unit-tests-${{ github.ref }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

env:
GOTESTSUMVERSION: 1.13.0

jobs:
unit-tests:
name: Run Unit Tests
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
Expand All @@ -30,7 +35,7 @@ jobs:
- name: Checkout Radius repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ github.event.workflow_run.head_sha }}
fetch-depth: 1
persist-credentials: false

- name: Setup Go
Expand All @@ -57,15 +62,18 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
# This secret is unavailable for fork PRs; Codecov falls back to tokenless upload.
token: ${{ secrets.CODECOV_TOKEN }}
codecov_yml_path: ./.codecov.yml
files: ./dist/unit_test/ut_coverage.out
fail_ci_if_error: false
verbose: true

# Process test results and publish annotations. Skipped on fork PRs because
# the pull_request trigger does not grant checks: write to forks.
- name: Process Unit Test Results
uses: ./.github/actions/process-test-results
if: always()
if: always() && github.repository == 'radius-project/radius'
with:
test_group_name: Unit Tests
artifact_name: unit_test_results
Expand Down
8 changes: 4 additions & 4 deletions hack/bicep-types-radius/src/autorest.bicep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^25.2.3",
"@typescript-eslint/eslint-plugin": "^8.55.0",
"@typescript-eslint/parser": "^8.55.0",
"@types/node": "^25.3.0",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"colors": "^1.4.0",
"dir-compare": "^5.0.0",
"eslint": "^10.0.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-jest": "^29.13.0",
"eslint-plugin-jest": "^29.15.0",
"jest": "^30.2.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
Expand Down
Loading
Loading