Skip to content

Commit

Permalink
chore: do not run GH actions on frontend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkothari22 committed Dec 18, 2024
1 parent 73d962a commit 92f56fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@

name: CI

on:
push:
branches:
- master
paths:
- "raven/**"
pull_request:
paths:
- "raven/**"

jobs:
tests:
Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"

- name: Setup Node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -88,12 +91,12 @@ jobs:
bench --site test_site install-app raven
bench build
env:
CI: 'Yes'
CI: "Yes"

- name: Run Tests
working-directory: /home/runner/frappe-bench
run: |
bench --site test_site set-config allow_tests true
bench --site test_site run-tests --app raven
env:
TYPE: server
TYPE: server
2 changes: 2 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Linters

on:
pull_request:
paths:
- "raven/**"
workflow_dispatch:
push:
branches: [main]
Expand Down

0 comments on commit 92f56fa

Please sign in to comment.