Skip to content

done

done #10

name: Test PR
env:
MOMENTIC_API_KEY: ${{ secrets.MOMENTIC_API_KEY }}
on:
pull_request:
jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
permissions:
contents: read
repository-projects: read
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2]
shardTotal: [2]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 21
cache: "pnpm"
- name: Install dependencies
run: pnpm i
- run: |
npx momentic@^1 run momentic/create-react-app-test.test.yaml \
--start "npm run start" \
--env development \
--shard-index ${{ matrix.shardIndex }} \
--shard-count ${{ matrix.shardTotal }}