Files
iD/.github/workflows/build.yml
Daniele Basso 8a7b0cf43f Update Workflows (#9057)
Co-authored-by: Daniele Basso <daniele05.bass@gmail.com>
Co-authored-by: Martin Raifer <martin@raifer.tech>
2022-07-19 11:11:32 +02:00

31 lines
758 B
YAML

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: build
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16', '18']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run all
- run: npm run test