Skip to content

Commit

Permalink
ci(workflows): make tests action run on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
ducktordanny committed Jun 15, 2024
1 parent 650def9 commit 0cbda4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Release
# On master pushes it runs the rule tests and if needed it publishes to NPM (new package.json version).

name: Tests & Release
on:
push:
branches: master
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Runs rule tests on PRs targeting the master.

name: Tests
on: push
on:
pull_request:
branches: master

jobs:
build:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Fetch origin/master
run: |
git fetch --no-tags --prune --depth=5 origin master
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
Expand Down

0 comments on commit 0cbda4d

Please sign in to comment.