chore: debug #179
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
| # This is a Github Workflow that runs tests on any push or pull request. | |
| # If the tests pass and this is a push to the master branch it also runs Semantic Release. | |
| name: CI | |
| on: [push, pull_request] | |
| env: | |
| npm_config_audit: false | |
| npm_config_fund: false | |
| npm_config_save: false | |
| npm_config_package_lock: false | |
| permissions: {} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npm run build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: build | |
| path: | | |
| target | |
| package.json | |
| jsr.json | |
| retention-days: 1 | |
| test: | |
| needs: build | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: build | |
| - name: Fetch deps | |
| run: npm ci | |
| - name: Run tests | |
| run: npm run test | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: | | |
| target/coverage | |
| package.json | |
| retention-days: 1 | |
| release: | |
| name: Release ${{ github.ref }} | |
| needs: test | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| # if: github.event_name == 'turned-off-temporary' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: read | |
| statuses: write | |
| contents: write | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| merge-multiple: true | |
| - name: Run release | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_PROVENANCE: true | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GIT_BRANCH: 'main' | |
| GIT_AUTHOR_NAME: ${{ vars.GIT_AUTHOR_NAME }} | |
| GIT_AUTHOR_EMAIL: ${{ vars.GIT_AUTHOR_EMAIL }} | |
| GIT_COMMITTER_NAME: ${{ vars.GIT_COMMITTER_NAME }} | |
| GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL }} | |
| run: npx zx-semrel | |
| - name: Push docs and coverage | |
| env: | |
| GIT_COMMITTER_NAME: ${{ vars.GIT_COMMITTER_NAME }} | |
| GIT_COMMITTER_EMAIL: ${{ vars.GIT_COMMITTER_EMAIL }} | |
| run: | | |
| npx ggcp target/docs https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git/gh-pages --message='chore: update docs' | |
| npx ggcp target/coverage/lcov.info https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git/coverage/${{ github.sha }}.lcov.info --message='chore: add coverage for ${{ github.sha }}' | |
| pr: | |
| needs: build | |
| if: github.event_name == 'pull_request' | |
| name: pr-os-${{ matrix.os }}-nodejs${{ matrix.node-version }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-24.04, windows-2022, windows-2025 ] | |
| node-version: [ 20 ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: build | |
| - name: Fetch deps | |
| run: npm ci | |
| - name: Run all tests | |
| if: matrix.os == 'ubuntu-24.04' | |
| run: npm run test | |
| - name: Run win32 tests | |
| if: matrix.os != 'ubuntu-24.04' | |
| timeout-minutes: 2 | |
| run: npm run x:test:legacy | |
| # run: | | |
| # wmic process get ProcessId,ParentProcessId,CommandLine | |
| # - name: wmic via node | |
| # if: matrix.os == 'windows-latest' | |
| # run: | | |
| # node -e "const { execSync } = require('child_process'); console.log(execSync('wmic process get ProcessId,ParentProcessId,CommandLine').toString())" |