diff --git a/.github/workflows/backend-tests.yaml b/.github/workflows/backend-tests.yaml index 7de56607..3d1c19ed 100644 --- a/.github/workflows/backend-tests.yaml +++ b/.github/workflows/backend-tests.yaml @@ -1,7 +1,9 @@ name: Backend API tests and code coverage on: - - push + push: + paths-ignore: + - training-front-end/** jobs: test: diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 50e1703b..2b459042 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,8 +2,8 @@ name: Continuous deployment to cloud.gov on: push: - branches: - - main + paths-ignore: + - training-front-end/** jobs: deploy: diff --git a/.github/workflows/frontend-tests.yaml b/.github/workflows/frontend-tests.yaml index 0714b50a..eb8c6a95 100644 --- a/.github/workflows/frontend-tests.yaml +++ b/.github/workflows/frontend-tests.yaml @@ -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 @@ -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