- Bump setup-node action to v2. - Use composite actions to reuse same setting. This is preferred over reusable templates because reusable templates are on job-level but setting up node should be a step.
29 lines
675 B
YAML
29 lines
675 B
YAML
name: integration-tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule: # To get notified about problems from third party dependencies
|
|
- cron: '0 0 * * 0' # at 00:00 on every Sunday
|
|
|
|
jobs:
|
|
run-tests:
|
|
strategy:
|
|
matrix:
|
|
os: [macos, ubuntu, windows]
|
|
fail-fast: false # So it still runs on other OSes if one of them fails
|
|
runs-on: ${{ matrix.os }}-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
-
|
|
name: Setup node
|
|
uses: ./.github/actions/setup-node
|
|
-
|
|
name: Install dependencies
|
|
run: npm ci
|
|
-
|
|
name: Run integration tests
|
|
run: npm run test:integration
|