Skip to content

Instantly share code, notes, and snippets.

@hebertcisco
Created December 22, 2021 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hebertcisco/b9aa8758af63727663aba7b34669ee05 to your computer and use it in GitHub Desktop.
Save hebertcisco/b9aa8758af63727663aba7b34669ee05 to your computer and use it in GitHub Desktop.
MACOS Pipeline to build nodejs Aplications
name: Node.js CI on Darwin
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
npm-version: [6.x, 8.x, 9.x]
yarn-version: [1.x, 2.x, 3.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment