Created
December 22, 2021 16:57
-
-
Save hebertcisco/b9aa8758af63727663aba7b34669ee05 to your computer and use it in GitHub Desktop.
MACOS Pipeline to build nodejs Aplications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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