chore(deps): Bump SonarSource/sonarcloud-github-action from 5ee47de3c96f0c1c51b09d2ff1fec0cfeefcf67c to eb211723266fe8e83102bac7361f0a05c3ac1d1b #150
Workflow file for this run
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
name: CI | |
on: | |
pull_request: {} | |
merge_group: {} | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
test-typescript: | |
name: "Test: Unit Tests" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
id: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: "Setup: PNPM" | |
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0 | |
with: | |
version: 9.1.4 | |
- name: "Setup: Node" | |
id: setup-node | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: "Setup: Install Dependencies" | |
id: install | |
run: pnpm install --frozen-lockfile && pnpm install -g turbo | |
- name: Check Format | |
id: npm-format-check | |
run: pnpm run format:check | |
- name: Lint | |
id: npm-lint | |
run: pnpm run lint | |
- name: Test | |
id: npm-ci-test | |
run: pnpm run test | |
- name: "Test: Sonar" | |
uses: SonarSource/sonarcloud-github-action@eb211723266fe8e83102bac7361f0a05c3ac1d1b # master | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
args: > | |
-Dsonar.organization=elide-dev | |
-Dsonar.projectKey=elide-dev_setup-elide | |
-Dsonar.python.coverage.reportPaths=coverage.xml | |
-Dsonar.sources=src/ | |
-Dsonar.tests=__tests__/ | |
-Dsonar.verbose=true | |
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info | |
-Dsonar.testExecutionReportPaths=test-report.xml | |
- name: "Report: Coverage" | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
test-action: | |
name: "Test: Actions" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
id: checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: "Test: Local Action" | |
id: test-action | |
uses: ./ | |
with: {} | |
- name: "Test: Print Output" | |
id: output | |
run: echo "${{ steps.test-action.outputs.path }}" | |
check-dist: | |
name: "Test: Dist" | |
uses: ./.github/workflows/check-dist.yml | |
secrets: inherit | |
permissions: | |
contents: read | |
statuses: write |