Skip to content

chore: test integration tests #17

chore: test integration tests

chore: test integration tests #17

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 20
cache: npm
- name: Install Dependencies
run: npm ci
- name: Format
run: npm run format
- name: Lint
run: npm run lint
- name: Test
run: npm run test:unit
- name: Build
run: npm run build
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: build-artifacts
path: |
dist
package-lock.json
integration_test:
name: Integration Test
needs: build
runs-on: ${{ matrix.os }}
env:
CI: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Download build artifacts
uses: actions/[email protected]
with:
name: build-artifacts
path: |
dist
package-lock.json
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Run integration tests
run: npm run test:integration