fix(ci): Setup a separate workflow action to test for pushes on master (#3951)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-08-26 10:27:04 +02:00 committed by GitHub
parent 4bb8009e9f
commit 1f9bdd09a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 2 deletions

32
.github/workflows/ci-master.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Test Master
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install -g npm@latest
npm install
npm run build --if-present
npm test
npm run lint
env:
CI: true

View file

@ -1,6 +1,6 @@
name: Node CI
name: Test Pull Requests
on: [push, pull_request]
on: [pull_request]
jobs:
build: