fix: add Oxlint rule tester and fix issue in sort-classes
#3458
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: Test | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| jobs: | |
| astro: | |
| name: Astro | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:astro | |
| css: | |
| name: CSS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:css | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:format | |
| js: | |
| name: JS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:js | |
| packages: | |
| name: Packages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:packages | |
| spelling: | |
| name: Spelling | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:spelling | |
| svelte: | |
| name: Svelte | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:svelte | |
| types: | |
| name: Types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:types | |
| unit: | |
| name: Unit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 cli.codecov.io:443 github.com:443 | |
| ingest.codecov.io:443 keybase.io:443 o26192.ingest.us.sentry.io:443 | |
| registry.npmjs.org:443 release-assets.githubusercontent.com:443 | |
| storage.googleapis.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:unit | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| usage: | |
| name: Usage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| api.github.com:443 github.com:443 registry.npmjs.org:443 | |
| release-assets.githubusercontent.com:443 | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Tools | |
| uses: ./.github/actions/install-tools | |
| - name: Install Dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Test | |
| run: pnpm test:usage |