makes pipeline run on all branches

This commit is contained in:
Lars Berning 2021-11-21 22:35:17 +01:00
parent 9e03c01a53
commit 66ec2070bc
No known key found for this signature in database
GPG Key ID: 028E73C9E1D8A0B3
1 changed files with 15 additions and 17 deletions

View File

@ -4,10 +4,8 @@
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
- push
- pull_request
jobs:
build:
@ -19,16 +17,16 @@ jobs:
node-version: [14.x, 16.x, 17.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install system dependencies
run: |
sudo apt -qq update
sudo apt install -y bluetooth bluez libbluetooth-dev libudev-dev
- run: npm ci
- run: npm run build --if-present
- run: npm run lint
- run: npm test
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install system dependencies
run: |
sudo apt -qq update
sudo apt install -y bluetooth bluez libbluetooth-dev libudev-dev
- run: npm ci
- run: npm run build --if-present
- run: npm run lint
- run: npm test