From ae449422780443d6514be0442e1ba9c0a34d6058 Mon Sep 17 00:00:00 2001 From: vu-bui Date: Mon, 10 Jul 2023 11:59:52 +0700 Subject: [PATCH] use kre docker image as job's container --- .github/workflows/main.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0671a69..58cac29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,25 +7,16 @@ jobs: sonarqube: name: Build runs-on: ubuntu-latest + container: + image: katalonstudio/katalon steps: - uses: actions/checkout@v3 - - name: Setup Java - uses: actions/setup-java@v3 - with: - distribution: temurin - java-version: '8' - - name: Setup Gradle - uses: gradle/gradle-build-action@v2 - with: - gradle-version: 6.7 - name: Copy Dependencies run: gradle katalonCopyDependencies - name: Copy Libs run: | - docker create --name tmp katalonstudio/katalon - docker cp tmp:/opt/katalonstudio/plugins/. ./Libs - docker cp tmp:/opt/katalonstudio/configuration/resources/lib/. ./Libs - docker rm tmp + mkdir -p ./Libs + cp -r /opt/katalonstudio/plugins/. /opt/katalonstudio/configuration/resources/lib/. ./Libs - name: Plugin Package run: gradle katalonPluginPackage - name: SonarCloud Scan