diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml new file mode 100644 index 0000000000..4f6654e966 --- /dev/null +++ b/.github/workflows/ci-master.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/ci-pull-requests.yml similarity index 92% rename from .github/workflows/tests.yml rename to .github/workflows/ci-pull-requests.yml index db6ccc85bf..92d62c7f6f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -1,6 +1,6 @@ -name: Node CI +name: Test Pull Requests -on: [push, pull_request] +on: [pull_request] jobs: build: