From 51822a6947730bc4c41723a9fee32c416f838e9f Mon Sep 17 00:00:00 2001 From: Anders Nickelsen Date: Wed, 2 Oct 2024 10:45:53 +0200 Subject: [PATCH] Test the test --- .github/workflows/integration-test.yml | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/integration-test.yml diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 0000000..9567c34 --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,52 @@ +name: Integration test + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'adopt' + cache: 'gradle' + - uses: actions/cache@v4 + with: + path: "/home/runner/.konan" + key: ${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }} + - name: Install dependencies + run: | + sudo apt -y update + sudo apt -y install libcurl4-openssl-dev + - name: Build with Gradle + run: ./gradlew commonBinaries + - name: Move and apply correct permissions to binary + run: | + cp build/bin/common/releaseExecutable/slack-notifier-cli.kexe ./slack-notifier-cli + chmod +x ./slack-notifier-cli + - name: Run slack notifier cli first time (updating) + id: slack-notifier-updating + env: + PUBLISH_SLACK_JOB_TYPE: "build" + PUBLISH_SLACK_JOB_STATUS: "progress" + PUBLISH_SLACK_SERVICE_NAME: "anni" + PUBLISH_SLACK_SERVICE_EMOJI: "☕️" + SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }} + SLACK_CHANNEL_ID: "C07MYE8QV98" + run: ./slack-notifier-cli + shell: bash + - name: Run slack notifier cli second time (updating) + env: + PUBLISH_SLACK_JOB_TYPE: "build" + PUBLISH_SLACK_JOB_STATUS: "success" + PUBLISH_SLACK_SERVICE_NAME: "anni" + PUBLISH_SLACK_SERVICE_EMOJI: "☕️" + SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }} + SLACK_CHANNEL_ID: "C07MYE8QV98" + SLACK_MESSAGE_ID: ${{ steps.slack-notifier-updating.outputs.slack-message-id }} + run: ./slack-notifier-cli + shell: bash