fix: upgrade deps, fix various bugs #289
Workflow file for this run
This file contains hidden or 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@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
| with: | |
| egress-policy: audit | |
| - name: "Setup: Checkout" | |
| id: checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: "Setup: PNPM" | |
| uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | |
| with: | |
| version: 9.1.4 | |
| - name: "Setup: Node" | |
| id: setup-node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| 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: Test | |
| id: npm-ci-test | |
| run: pnpm run test | |
| - name: "Test: Sonar" | |
| uses: SonarSource/sonarcloud-github-action@13a24e453e2e6262f3bb0c5fa8241031e637a028 # 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@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| test-action: | |
| name: "Test: Actions" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
| with: | |
| egress-policy: audit | |
| - name: "Setup: Checkout" | |
| id: checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - 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 |