feat(rive-angular): add dual runtime support with webgl2 fallback #22
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: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| lint-test-build: | |
| name: Lint, Test & Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Use pinned npm via Corepack (match packageManager) | |
| run: | | |
| corepack enable | |
| corepack prepare npm@11.12.1 --activate | |
| npm --version | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint library | |
| run: npm run lint:lib | |
| - name: Test library | |
| run: npm run test:lib -- --coverage --watchAll=false | |
| - name: Build library | |
| run: npm run build:lib | |
| - name: Upload coverage to Codecov | |
| if: matrix.node-version == '20.x' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./coverage/libs/rive-angular/lcov.info | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: false | |
| publish-check: | |
| name: Publish Check | |
| runs-on: ubuntu-latest | |
| needs: lint-test-build | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Use pinned npm via Corepack (match packageManager) | |
| run: | | |
| corepack enable | |
| corepack prepare npm@11.12.1 --activate | |
| npm --version | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build library | |
| run: npm run build:lib | |
| - name: Pack library (dry-run) | |
| run: npm run pack:lib |