Skip to content

Commit

Permalink
Oppgraderer til ny bidrag-transport (#50)
Browse files Browse the repository at this point in the history
Faster gh-actions
  • Loading branch information
unorsk authored Oct 2, 2023
1 parent e8d3f29 commit 26490f1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deploy_feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: mvn -Dmaven.test.skip=true -B -e --settings .m2/maven-settings.xml clean install
- run: mvn -B -e --settings .m2/maven-settings.xml clean install
- uses: nais/docker-build-push@v0
id: docker-push
with:
Expand All @@ -41,29 +41,29 @@ 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
# 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
# - run-tests
- build
steps:
- uses: actions/checkout@v4
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: mvn -Dmaven.test.skip=true -B -e --settings .m2/maven-settings.xml clean install
- run: mvn -B -e --settings .m2/maven-settings.xml clean install
- uses: nais/docker-build-push@v0
id: docker-push
with:
Expand All @@ -40,29 +40,29 @@ 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
# 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
# - run-tests
- build
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 26490f1

Please sign in to comment.