Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kne42 committed Oct 31, 2023
1 parent 34ab0a3 commit 961beff
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
filters: |
frontend:
- 'frontend/**'
tsx:
- '*.tsx'
- uses: actions/setup-node@v3
if: steps.changes.outputs.frontend == 'true'
Expand Down Expand Up @@ -63,7 +61,7 @@ jobs:
working-directory: frontend

- name: Build GraphQL Types
if: steps.changes.outputs.frontend == 'true' && steps.changes.outputs.tsx == 'true'
if: steps.changes.outputs.frontend == 'true'
run: pnpm build
working-directory: frontend/packages/data-portal

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,28 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: 8.9.0
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies with PNPM
run: pnpm install --frozen-lockfile
working-directory: frontend

- name: Build GraphQL Types
run: pnpm build
working-directory: frontend/packages/data-portal

- name: ${{ matrix.name }}
run: ${{ matrix.run }}
Expand Down

0 comments on commit 961beff

Please sign in to comment.