From c49f0884eea59775e6ce4395bd05a2ce3f45d7df Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Wed, 31 Jul 2024 09:07:37 +0100 Subject: [PATCH] ci: update workflows build processes (#53) * Remove unnecessary publish workflow * Add job to test build, update actions, use ubuntu-latest instead of custom runner * Fix typo in publish command --- .github/workflows/publish.yml | 18 ------------------ .github/workflows/verify-pull-request.yml | 16 ++++++++++++++-- .github/workflows/verify-push-main.yml | 4 ++-- 3 files changed, 16 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 97cbf79..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Publish - -on: - push: - tags: - - "v*" - -jobs: - package: - name: Publish Gradle Dependency - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Preconfigure gradle - uses: ./.github/actions/prepare-gradle - - name: Publish new version - run: ./gradlew publish diff --git a/.github/workflows/verify-pull-request.yml b/.github/workflows/verify-pull-request.yml index 498c153..b2a36b7 100644 --- a/.github/workflows/verify-pull-request.yml +++ b/.github/workflows/verify-pull-request.yml @@ -8,12 +8,24 @@ on: jobs: test: name: Run Unit Tests - runs-on: General-Purpose-4c-Runner + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Preconfigure gradle uses: ./.github/actions/prepare-gradle - name: Run unit tests run: ./gradlew check -x koverVerify -P excludeIntegrationTests + + build: + name: Test build process + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Preconfigure gradle + uses: ./.github/actions/prepare-gradle + + - name: Test Build Process + run: ./gradlew publishToMavenLocal diff --git a/.github/workflows/verify-push-main.yml b/.github/workflows/verify-push-main.yml index 77218e6..7459ab7 100644 --- a/.github/workflows/verify-push-main.yml +++ b/.github/workflows/verify-push-main.yml @@ -8,7 +8,7 @@ on: jobs: test: name: Run Unit Tests - runs-on: General-Purpose-4c-Runner + runs-on: ubuntu-latest env: INTEGRATION_TESTS_ENVIRONMENT_KEY: NTtWcerSBE5yj7a5optMSk @@ -17,7 +17,7 @@ jobs: INTEGRATION_TESTS_API_TOKEN: ${{ secrets.INTEGRATION_TESTS_API_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Preconfigure gradle uses: ./.github/actions/prepare-gradle