Skip to content

Commit

Permalink
run actions only when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
jfredrickson committed Apr 27, 2023
1 parent c5ffba5 commit 17c3dc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/backend-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Backend API tests and code coverage

on:
- push
push:
paths-ignore:
- training-front-end/**

jobs:
test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Continuous deployment to cloud.gov

on:
push:
branches:
- main
paths-ignore:
- training-front-end/**

jobs:
deploy:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/frontend-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: Frontend tests and code coverage

on:
- push
push:
paths:
- training-front-end/**

jobs:
unit-tests-and-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'training-front-end'
working-directory: 'training-front-end'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -19,10 +21,10 @@ jobs:
node-version: '18'
cache: 'npm'
cache-dependency-path: training-front-end/package-lock.json

- name: install dependencies
run: npm ci

- name: run linter
run: npm run lint

Expand Down

0 comments on commit 17c3dc2

Please sign in to comment.