Skip to content

Update test GitHub Actions Workflow (#43) #16

Update test GitHub Actions Workflow (#43)

Update test GitHub Actions Workflow (#43) #16

Workflow file for this run

name: Test Packages
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['10', '12']
package:
[
xdl,
]
name: Test ${{ matrix.package }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install --frozen-lockfile --check-files
- run: yarn lerna run prepare --stream
- run: yarn lint --max-warnings=0
- name: Test ${{ matrix.package }}
run: cd packages/${{ matrix.package }} && yarn test
# run: cd packages/${{ matrix.package }} && yarn test --coverage
env:
CI: true