chore: update Storybook and Vite dependencies FE-1442 #692
This file contains 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: Tests Unit | |
on: | |
pull_request: | |
branches: [main, master, sdk-v2] | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests-jest: | |
name: Jest Tests [Shard ${{ matrix.shard }}] | |
runs-on: buildjet-8vcpu-ubuntu-2204-arm | |
strategy: | |
fail-fast: false | |
matrix: | |
shard: [1, 2, 3, 4] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Extract pnpm version from .tool-versions | |
id: get_pnpm | |
run: | | |
PNPM_VERSION=$(grep '^pnpm' .tool-versions | awk '{print $2}') | |
echo "PNPM_VERSION=${PNPM_VERSION}" >> $GITHUB_ENV | |
- uses: FuelLabs/github-actions/setups/node@master | |
with: | |
node-version: 20.11.0 | |
pnpm-version: ${{ env.PNPM_VERSION }} | |
- uses: FuelLabs/github-actions/setups/docker@master | |
with: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Unit tests running with JEST | |
- name: Run Jest Tests | |
run: pnpm test:ci --shard ${{ matrix.shard }}/4 | |
timeout-minutes: 10 | |
- name: Stop Test Node | |
run: pnpm node:clean |