mirror of
https://github.com/IRS-Public/direct-file.git
synced 2025-06-27 20:25:52 +00:00
Merge pull request #5 from cjhskippy/ci-fact-dictionary
Add tests to CI when the fact dictionary or its tests change
This commit is contained in:
commit
5ab27f92a8
1 changed files with 40 additions and 0 deletions
40
.github/workflows/run-fact-dictionary-tests.yml
vendored
Normal file
40
.github/workflows/run-fact-dictionary-tests.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Run fact dictionary tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '/direct-file/backend/src/main/resources/tax/**'
|
||||||
|
- '/direct-file/backend/src/test/**'
|
||||||
|
- '/direct-file/df-client/df-client-app/src/test/**'
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '/direct-file/backend/src/main/resources/tax/**'
|
||||||
|
- '/direct-file/backend/src/test/**'
|
||||||
|
- '/direct-file/df-client/df-client-app/src/test/**'
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
fact-dictionary-tests:
|
||||||
|
name: Run fact dictionary tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /direct-file/df-client/df-client-app/src/test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '18.20.4'
|
||||||
|
|
||||||
|
- name: Install node
|
||||||
|
uses: ../../../npm install
|
||||||
|
|
||||||
|
- name: Run fact dictionary tests
|
||||||
|
run: npm run test factDictionaryTests
|
Loading…
Add table
Add a link
Reference in a new issue