Skip to content

Commit

Permalink
Only run CI on pull_requests or updates to master
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Dec 2, 2020
1 parent d825fe6 commit f8bed86
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/node-windows.yml
@@ -1,14 +1,18 @@
name: Node

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: windows-2019

strategy:
matrix:
node: ['14', '12', '10']
node: [ '14', '12', '10' ]

name: ${{ matrix.node }} (Windows)
steps:
Expand All @@ -20,7 +24,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
run: npm test
Expand Down

0 comments on commit f8bed86

Please sign in to comment.