From 87ae810516c8c6c692bd641e7cb9e4202c0271f9 Mon Sep 17 00:00:00 2001 From: Skippy Williams Date: Fri, 20 Jun 2025 23:11:26 -0700 Subject: [PATCH] Add tests to CI for fact dictionary These should run fact dictionary tests on PRs to main and on changes to either the fact dictionary modules or their tests. --- .../workflows/run-fact-dictionary-tests.yml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/run-fact-dictionary-tests.yml diff --git a/.github/workflows/run-fact-dictionary-tests.yml b/.github/workflows/run-fact-dictionary-tests.yml new file mode 100644 index 0000000..ed00ae3 --- /dev/null +++ b/.github/workflows/run-fact-dictionary-tests.yml @@ -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