Skip to content

Merge pull request #65 from pactflow/refactor/ci_release_workflow #278

Merge pull request #65 from pactflow/refactor/ci_release_workflow

Merge pull request #65 from pactflow/refactor/ci_release_workflow #278

name: Build and test
on:
push:
pull_request:
branches: [master]
jobs:
build-and-test-osx:
runs-on: macos-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: ./scripts/build.sh
shell: bash
build-and-test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: ./scripts/build.sh
shell: bash