Skip to content

Bump com.opengamma.strata:strata-basics from 2.12.28 to 2.12.29 #671

Bump com.opengamma.strata:strata-basics from 2.12.28 to 2.12.29

Bump com.opengamma.strata:strata-basics from 2.12.28 to 2.12.29 #671

Workflow file for this run

# See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
name: analyze
on:
push:
branches: ['main', 'maintenance/*']
paths: ['.github/**', '.mvn/**', 'src/**', 'eclipse-formatter-config.xml', 'pom.xml']
pull_request:
branches: ['main', 'maintenance/*']
paths: ['.github/**', '.mvn/**', 'src/**', 'eclipse-formatter-config.xml', 'pom.xml']
schedule:
- cron: '0 0 * * 6'
permissions:
contents: 'read'
pull-requests: 'write' # Required by SonarCloud to comment PRs
security-events: 'write' # Required by all codeql-action workflows
jobs:
sonar:
# This workflow is only of value to the marcwrobel/jbanking repository and would always fail in forks
if: github.repository == 'marcwrobel/jbanking'
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of sonar analysis
- name: Set up Java
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
distribution: 'temurin'
java-version: 17
- name: Cache SonarQube packages
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: '~/.sonar/cache'
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: '~/.m2/repository'
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}
run: 'mvn --settings .mvn/settings.xml -B -P analyze verify sonar:sonar'
codeql:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# We must fetch at least the immediate parents so that if this is a pull request then we can check out the head.
fetch-depth: 2
- name: Initialize CodeQL
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
with:
languages: 'java'
queries: 'security-and-quality'
- name: Autobuild
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4