Bump kubewarden/kubewarden-end-to-end-tests from 04a59d0246622ea2ea14593ac9b3c673903797f8 to 50f4cf0f4f05df8328dfd1f5c36dd25bff148415 #1107
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: Unit Tests | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 21 * * *' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| unit-test: | |
| if: github.repository_owner == 'rancher' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Nodejs and npm | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: '24' | |
| - name: Setup yarn | |
| run: npm install -g yarn | |
| - name: Setup Nodejs with yarn caching | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: '24' | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Run tests | |
| run: | | |
| yarn test:ci | |
| mkdir -p coverage-artifacts/coverage/unit | |
| cp coverage/unit/coverage-final.json coverage-artifacts/coverage/coverage-unit.json | |
| - name: Upload coverage | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: ${{github.run_number}}-${{github.run_attempt}}-coverage | |
| path: coverage-artifacts/**/* |