Skip to content

Bump felles.version from 3.20241216102134_145872f to 3.20250122095809_31cdd5a #1581

Bump felles.version from 3.20241216102134_145872f to 3.20250122095809_31cdd5a

Bump felles.version from 3.20241216102134_145872f to 3.20250122095809_31cdd5a #1581

name: Build-Deploy-Preprod
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
jobs:
ktlint:
name: Ktlint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Kjør ktlint
env:
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn antrun:run@ktlint
deploy-to-dev:
name: Bygg familie-ba-infotrygd-feed
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Bygg med maven
env:
TESTCONTAINERS_RYUK_DISABLED: true
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B --no-transfer-progress verify --settings .m2/maven-settings.xml --file pom.xml
- name: Upload Report
uses: 'actions/upload-artifact@v4'
with:
name: jacoco-report
path: ${{ github.workspace }}/target/site/jacoco/
retention-days: 2
- name: Add coverage to PR
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 70
min-coverage-changed-files: 70
title: Code Coverage
- uses: nais/docker-build-push@v0
id: docker-push
if: github.event.pull_request.user.login != 'dependabot[bot]'
with:
team: teamfamilie
push_image: true
dockerfile: Dockerfile
docker_context: .
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
byosbom: target/classes/META-INF/sbom/application.cdx.json
- name: Deploy til dev-fss
if: github.event.pull_request.user.login != 'dependabot[bot]'
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-fss
RESOURCE: app-preprod.yaml
IMAGE: ${{ steps.docker-push.outputs.image }}