Skip to content

ci: Trigger workflow on dev-branch commits #116

ci: Trigger workflow on dev-branch commits

ci: Trigger workflow on dev-branch commits #116

name: Build Application
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x, 18.x, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
npm install
npm run test
CI=false npm run build