From 479a18704994ef6ae5bfb29ae425ec7cf5bb8dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20Horv=C3=A1th?= Date: Mon, 30 Mar 2026 09:31:09 +0200 Subject: [PATCH 1/2] [LTECH-405] Run tests in CI --- .github/workflows/test.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..7bcf257 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: Test + +on: + push: + workflow_dispatch: + +permissions: + contents: read + id-token: write + +concurrency: + group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }} + cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }} + +jobs: + test: + name: Run Tests + runs-on: [self-hosted, java-large] + steps: + - name: Checkout sources + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1 + with: + aws-region: eu-central-1 + role-to-assume: arn:aws:iam::130607246975:role/ci-base-access + role-session-name: swe-interview-test + + - name: Setup Java + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 + with: + distribution: temurin + java-version-file: .sdkmanrc + + - name: Run tests + uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0 + with: + gradle-version: wrapper + arguments: | + --build-cache test + env: + CODEARTIFACT_AUTH_TOKEN: ${{ secrets.CODEARTIFACT_AUTH_TOKEN }} From 302b92526ed0a3eba843be85288ea383c6d4a246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20Horv=C3=A1th?= Date: Mon, 30 Mar 2026 10:00:07 +0200 Subject: [PATCH 2/2] [LTECH-405] Github runner --- .github/workflows/test.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7bcf257..687df42 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,6 @@ on: permissions: contents: read - id-token: write concurrency: group: ${{ github.workflow }}${{ github.ref_name != github.event.repository.default_branch && github.ref || github.run_id }} @@ -15,18 +14,11 @@ concurrency: jobs: test: name: Run Tests - runs-on: [self-hosted, java-large] + runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1 - with: - aws-region: eu-central-1 - role-to-assume: arn:aws:iam::130607246975:role/ci-base-access - role-session-name: swe-interview-test - - name: Setup Java uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 with: @@ -39,5 +31,3 @@ jobs: gradle-version: wrapper arguments: | --build-cache test - env: - CODEARTIFACT_AUTH_TOKEN: ${{ secrets.CODEARTIFACT_AUTH_TOKEN }}