From e7bf4c4695fd677f0cb303448ed207ff3c2ca442 Mon Sep 17 00:00:00 2001 From: Nicolas N Date: Wed, 4 Dec 2024 09:48:26 +0100 Subject: [PATCH] test pr 2 --- .github/workflows/.test.yaml | 27 ++++++++++++++++--- .../client/src/App.tsx | 2 +- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/.test.yaml b/.github/workflows/.test.yaml index 495059c98f..11c4cf91db 100644 --- a/.github/workflows/.test.yaml +++ b/.github/workflows/.test.yaml @@ -10,13 +10,25 @@ jobs: outputs: type: ${{ steps.verify-type.outputs.type }} steps: + - name: Checkout code + uses: actions/checkout@v4 - id: verify-type + working-directory: apps/${{ github.workflow }} run: | [ -f "package.json" ] && echo "type=frontend" || echo "type=backend" >> "$GITHUB_OUTPUT" + what: + name: Sjekk + runs-on: ubuntu-latest + needs: [verify-pull-request] + steps: + - run: | + echo "${{ needs.verify-pull-request.outputs.type }}" + test-backend: - if: needs.verify-pull-request.outputs.type == 'backend' name: Verify pull request (backend) + if: needs.verify-pull-request.outputs.type == 'backend' + needs: [verify-pull-request] runs-on: ubuntu-latest-8-cores timeout-minutes: 10 steps: @@ -35,8 +47,9 @@ jobs: run: ./gradlew :apps:${{ github.workflow }}:test --stacktrace --configuration-cache test-frontend: - if: needs.verify-pull-request.outputs.type == 'frontend' name: Verify pull request (frontend) + if: needs.verify-pull-request.outputs.type == 'frontend' + needs: [verify-pull-request] runs-on: ubuntu-latest steps: - name: Checkout code @@ -55,4 +68,12 @@ jobs: run: yarn --cwd server install --frozen-lockfile && yarn --cwd server build - name: Run tests working-directory: apps/${{ env.APP_NAME }}/client - run: CI=true yarn test \ No newline at end of file + run: CI=true yarn test + + pull-request-verified: + name: Verified OK + needs: [test-frontend, test-backend] + runs-on: ubuntu-latest + steps: + - name: Cleanup + run: echo "SUCCESS" diff --git a/apps/etterlatte-saksbehandling-ui/client/src/App.tsx b/apps/etterlatte-saksbehandling-ui/client/src/App.tsx index bc9d72573d..7bb4b6b808 100644 --- a/apps/etterlatte-saksbehandling-ui/client/src/App.tsx +++ b/apps/etterlatte-saksbehandling-ui/client/src/App.tsx @@ -30,7 +30,7 @@ import { Unleashcontext, useUnleash } from '~useUnleash' initAmplitude() -// test pr +// test pr 2 function App() { const innloggetbrukerHentet = useHentInnloggetSaksbehandler()