feat(UI): implement SponsorProgress component (#2144)
#5313
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: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - src/** | |
| - package*.json | |
| - eslint.config.js | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - if: ${{ github.event_name == 'pull_request' }} | |
| name: Upload artifact (pull_request) | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: XKit Rewritten (#${{ github.event.pull_request.number }}) | |
| path: src/** | |
| - id: get_short_sha | |
| if: ${{ github.event_name != 'pull_request' }} | |
| name: Get abbreviated commit SHA | |
| run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - if: ${{ steps.get_short_sha.outcome == 'success' }} | |
| name: Upload artifact (push, workflow_dispatch) | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: XKit Rewritten (${{ github.ref_name }} ${{ steps.get_short_sha.outputs.SHORT_SHA }}) | |
| path: src/** | |
| test: | |
| name: Test | |
| runs-on: ubuntu-slim | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm test |