diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 027f800..4b7ef90 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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