Add new detector for ConstructorThrow #1739
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: temurin | |
cache: gradle | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Download Eclipse | |
run: | | |
wget -nv 'https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.14-201912100610/eclipse-SDK-4.14-linux-gtk-x86_64.tar.gz&r=1' -O eclipse-SDK-4.14-linux-gtk-x86_64.tar.gz | |
tar xzf eclipse-SDK-4.14-linux-gtk-x86_64.tar.gz eclipse | |
echo "eclipseRoot.dir=$(pwd)/eclipse" | tee eclipsePlugin/local.properties | |
- name: Build | |
# https://community.sonarsource.com/t/sonarcloud-now-not-updating-github-pr-and-checks/6595/17 | |
run: | | |
echo "keystorepass=${KEYSTORE_PASS}" >> gradle.properties | |
git fetch --no-tags https://$GITHUB_TOKEN@github.com/spotbugs/spotbugs.git +refs/heads/master:refs/remotes/origin/master | |
if [ "$GPG_SECRET_PASSPHRASE" != "" ]; then | |
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_SECRET_PASSPHRASE" --output spotbugs.jks .github/workflows/spotbugs.jks.gpg; | |
fi | |
./gradlew spotlessCheck build smoketest ${SONAR_LOGIN:+sonarqube} --no-daemon -Dsonar.login=$SONAR_LOGIN --scan | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GPG_SECRET_PASSPHRASE: ${{ secrets.GPG_SECRET_PASSPHRASE }} | |
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }} | |
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} |