v4.0.6 #647
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 : # rebuild any PRs and main branch changes | |
| push : | |
| branches: | |
| - main | |
| pull_request : | |
| workflow_call: | |
| env : | |
| NODE_VERSION: 24 | |
| PNPM_VERSION: 10.17.1 | |
| jobs: | |
| build : # make sure build/ci work properly | |
| name : Build | |
| runs-on: ubuntu-latest | |
| steps : | |
| - uses: actions/checkout@v5 | |
| - name: Use PNPM ${{ env.PNPM_VERSION }} | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| cache : pnpm | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies | |
| run : pnpm i | |
| - name: Build using Rolldown | |
| run : pnpm build | |
| lint : # make sure build/ci work properly | |
| name : Lint | |
| runs-on: ubuntu-latest | |
| steps : | |
| - uses: actions/checkout@v5 | |
| - name: Use PNPM ${{ env.PNPM_VERSION }} | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| cache : pnpm | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies | |
| run : pnpm i | |
| - name: Check code styles | |
| run : pnpm lint | |
| test : # make sure build/ci work properly | |
| name : Test | |
| runs-on: ubuntu-latest | |
| steps : | |
| - uses: actions/checkout@v5 | |
| - name: Use PNPM ${{ env.PNPM_VERSION }} | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| cache : pnpm | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies | |
| run : pnpm i | |
| - name: Type check source files & unit tests | |
| run : pnpm test:types | |
| - name: Run unit tests | |
| run : pnpm test:coverage | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| action : # make sure the action files are up to date | |
| name : Action files | |
| runs-on: ubuntu-latest | |
| steps : | |
| - uses: actions/checkout@v5 | |
| - name: Use PNPM ${{ env.PNPM_VERSION }} | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| cache : pnpm | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies | |
| run : pnpm i | |
| - uses: nickcharlton/[email protected] | |
| with: | |
| command: pnpm build | |
| live-test : # make sure the action works on a clean machine without building | |
| name : Live Test | |
| runs-on: ubuntu-latest | |
| steps : | |
| - uses: actions/checkout@v5 | |
| - name: Changelog | |
| uses: ./ | |
| with: | |
| semver : ${{ startsWith(github.ref, 'refs/tags/') }} | |
| mention-new-contributors: ${{ github.ref_protected }} | |
| live-test-with-inputs: # make sure the action works on a clean machine without building | |
| name : Live Test with inputs | |
| runs-on: ubuntu-latest | |
| steps : | |
| - uses: actions/checkout@v5 | |
| - name: Changelog | |
| uses: ./ | |
| with: | |
| commit-types : | | |
| feat: Feature | |
| default-commit-type : Default Type | |
| mention-authors : false | |
| mention-new-contributors: false | |
| include-compare-link : false | |
| semver : false |