From 525a974de817029296985fb50cd0c483c91925f5 Mon Sep 17 00:00:00 2001 From: andrii <25188+unorsk@users.noreply.github.com> Date: Tue, 3 Oct 2023 13:46:01 +0200 Subject: [PATCH] Oppgraderer til ny bidrag-transport Faster gh-actions --- .github/workflows/dependabot.yaml | 3 ++- .github/workflows/deploy_feature.yaml | 19 ------------------- .github/workflows/pr.yaml | 19 ------------------- 3 files changed, 2 insertions(+), 39 deletions(-) diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml index 2b3579e47..eb3310140 100644 --- a/.github/workflows/dependabot.yaml +++ b/.github/workflows/dependabot.yaml @@ -1,5 +1,6 @@ name: Run tests for dependabot PRs on: + workflow_dispatch: pull_request: types: [ ready_for_review, opened, synchronize ] branches: @@ -25,4 +26,4 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - run: mvn -B -e --settings .m2/maven-settings.xml clean install + - run: mvn -B -e --settings .m2/maven-settings.xml clean test diff --git a/.github/workflows/deploy_feature.yaml b/.github/workflows/deploy_feature.yaml index 649d2f7cd..24ff1b89a 100644 --- a/.github/workflows/deploy_feature.yaml +++ b/.github/workflows/deploy_feature.yaml @@ -41,29 +41,10 @@ jobs: image: ${{ steps.docker-push.outputs.image }} tag: ${{ steps.docker-push.outputs.tag }} -# run-tests: -# runs-on: ubuntu-latest -# name: Run tests -# needs: build -# steps: -# - uses: actions/checkout@v4 -# - uses: actions/setup-java@v3 -# with: -# java-version: '17' -# distribution: 'temurin' -# - uses: actions/cache@v3 -# with: -# path: ~/.m2 -# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} -# restore-keys: | -# ${{ runner.os }}-maven- -# - run: mvn -B -e --settings .m2/maven-settings.xml clean install - deploy-feature: runs-on: ubuntu-latest name: Deploy feature needs: -# - run-tests - build steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 80823a5bb..99619b3dc 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -40,29 +40,10 @@ jobs: image: ${{ steps.docker-push.outputs.image }} tag: ${{ steps.docker-push.outputs.tag }} -# run-tests: -# runs-on: ubuntu-latest -# name: Run tests -# needs: build -# steps: -# - uses: actions/checkout@v4 -# - uses: actions/setup-java@v3 -# with: -# java-version: '17' -# distribution: 'temurin' -# - uses: actions/cache@v3 -# with: -# path: ~/.m2 -# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} -# restore-keys: | -# ${{ runner.os }}-maven- -# - run: mvn -B -e --settings .m2/maven-settings.xml clean install - deploy-dev: runs-on: ubuntu-latest name: Deploy dev needs: -# - run-tests - build steps: - uses: actions/checkout@v4