Skip to content

Commit

Permalink
remove glob pattern from path
Browse files Browse the repository at this point in the history
  • Loading branch information
navDhammu committed Nov 13, 2024
1 parent 53e3991 commit 45b19ec
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
- name: Generate cache key
id: cache_key
run: |
echo "CACHE_KEY=deps-cache-${{ hashFiles('/pnpm-lock.yaml') }}" >> $GITHUB_OUTPUT
echo "CACHE_KEY=deps-node-modules-${{ hashFiles('/pnpm-lock.yaml') }}" >> $GITHUB_OUTPUT
- name: Download cached dependencies
uses: actions/cache@v4
id: cache
with:
path: |
node_modules
packages/*/node_modules
packages/webapp/node_modules
packages/api/node_modules
key: ${{ steps.cache_key.outputs.CACHE_KEY }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -79,7 +80,8 @@ jobs:
with:
path: |
node_modules
packages/*/node_modules
packages/webapp/node_modules
packages/api/node_modules
key: ${{ needs.install_deps.outputs.deps_cache_key }}
- name: Setup database
run: pnpm -F '*api' migrate:pipeline:db
Expand All @@ -106,10 +108,11 @@ jobs:
with:
path: |
node_modules
packages/*/node_modules
packages/webapp/node_modules
packages/api/node_modules
key: ${{ needs.install_deps.outputs.deps_cache_key }}
- name: Run unit tests
run: pnpm test
run: pnpm -F '*webapp' test

run-linters-in-webapp:
name: Run linters in webapp
Expand All @@ -131,7 +134,8 @@ jobs:
with:
path: |
node_modules
packages/*/node_modules
packages/webapp/node_modules
packages/api/node_modules
key: ${{ needs.install_deps.outputs.deps_cache_key }}
- name: Run linters
run: pnpm -F '*webapp' exec eslint './public/locales/**/*.json'
Expand All @@ -156,7 +160,8 @@ jobs:
with:
path: |
node_modules
packages/*/node_modules
packages/webapp/node_modules
packages/api/node_modules
key: ${{ needs.install_deps.outputs.deps_cache_key }}
- name: Run linters
run: pnpm -F '*api' exec eslint './src/jobs/locales/**/*.json' './src/templates/locales/**/*.json'

0 comments on commit 45b19ec

Please sign in to comment.