Skip to content

Commit

Permalink
test pr 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Watercolours committed Dec 4, 2024
1 parent 425446f commit e7bf4c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/.test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
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"
2 changes: 1 addition & 1 deletion apps/etterlatte-saksbehandling-ui/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { Unleashcontext, useUnleash } from '~useUnleash'

initAmplitude()

// test pr
// test pr 2

function App() {
const innloggetbrukerHentet = useHentInnloggetSaksbehandler()
Expand Down

0 comments on commit e7bf4c4

Please sign in to comment.