Skip to content

feat!: BoxCLI major version 4.0.0 #594

feat!: BoxCLI major version 4.0.0

feat!: BoxCLI major version 4.0.0 #594

name: build-main
on:
pull_request:
types: [opened, synchronize]
branches:
- main
push:
branches:
- main
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ['16', '18', '20', '22']
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: npm install
run: npm install
- name: Build and test
run: npm test
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-node-${{ matrix.node }}-${{ matrix.os }}
parallel: true
finish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true