chore(deps): Bump step-security/harden-runner from 2.6.0 to 2.10.2 #166
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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
id: checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: "Setup: PNPM" | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.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@5ee47de3c96f0c1c51b09d2ff1fec0cfeefcf67c # 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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
id: checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- 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 |