Skip to content

build:(deps): Bump org.apache.maven.plugins:maven-deploy-plugin from … #383

build:(deps): Bump org.apache.maven.plugins:maven-deploy-plugin from …

build:(deps): Bump org.apache.maven.plugins:maven-deploy-plugin from … #383

Workflow file for this run

name: "Build"
on:
pull_request:
paths-ignore:
- '.txt'
- '*.MD'
- '*.md'
- 'LICENSE.txt'
push:
branches:
- main
paths-ignore:
- '.txt'
- '*.MD'
- '*.md'
- 'LICENSE'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install libsodium
run: sudo apt-get install -y libsodium-dev
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Check code formatting
run: |
./mvnw --no-transfer-progress com.spotify.fmt:fmt-maven-plugin:check
./mvnw --no-transfer-progress tidy:check
- name: Build
run: ./mvnw --no-transfer-progress clean install
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: SonarCloud Scan
if: ${{ github.actor != 'dependabot[bot]' }}
run: ./mvnw --no-transfer-progress org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.projectKey=nbaars_paseto4j -Dsonar.cpd.exclusions=version1/src/main/java/org/paseto4j/version1/CryptoFunctions.java
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}