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