feat(DEP0162): add codemod for fs write coercion #1879
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
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| # For more information see: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow | |
| name: Quality Assurance | |
| on: | |
| push: | |
| branches: ["*"] | |
| paths: | |
| - "recipes/**" | |
| - "utils/**" | |
| - "package.json" | |
| - "package-lock.json" | |
| - ".github/workflows/*.yml" | |
| pull_request: | |
| branches: ["*"] | |
| paths: | |
| - "recipes/**" | |
| - "utils/**" | |
| - "package.json" | |
| - "package-lock.json" | |
| - ".github/workflows/*.yml" | |
| types: | |
| - opened | |
| - ready_for_review | |
| - reopened | |
| - synchronize | |
| permissions: | |
| contents: read | |
| jobs: | |
| get-matrix: | |
| name: Configure Node environment matrix | |
| runs-on: ubuntu-latest | |
| outputs: | |
| latest: ${{ steps.set-matrix.outputs.requireds }} | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: ljharb/actions/node/matrix@7f214d8efdbdcefc96ad9689663ef387a195deec # main | |
| id: set-matrix | |
| with: | |
| versionsAsRoot: true | |
| type: majors | |
| preset: ">= 22" # glob is not backported below 22.x | |
| lint-and-types: | |
| name: Lint & types | |
| if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| show-progress: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| cache: "npm" | |
| check-latest: true | |
| node-version-file: ".nvmrc" | |
| - run: npm ci | |
| - run: node --run lint | |
| - run: node --run type-check | |
| validate-yaml: | |
| name: Validate YAML files | |
| if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Validate YAML files | |
| run: yamllint -c .yamllint.yaml -f github ./ | |
| test: | |
| name: Codemod JSSG tests | |
| if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| - windows-latest | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| show-progress: false | |
| - name: Set up Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| cache: "npm" | |
| check-latest: true | |
| node-version-file: ".nvmrc" | |
| - run: npm ci | |
| - run: node --run test |