Skip to content

Merge pull request #2514 from srod/hotfixes/v9 #7002

Merge pull request #2514 from srod/hotfixes/v9

Merge pull request #2514 from srod/hotfixes/v9 #7002

Workflow file for this run

name: Test
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x]
steps:
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test:ci
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov
for dir in packages/*; do
./codecov --dir "${dir}" --flags "$(basename "${dir}")" --token "${CODECOV_TOKEN}" --verbose
done
fi
shell: bash
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}