Skip to content

Commit

Permalink
Mechanical reformat of .github/workflows (#2459)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Mar 4, 2024
1 parent e06416c commit fc4b676
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ name: "Build"
# events for the `master` branch
on:
push:
branches: [ master ]
tags:
build*
branches: [master]
tags: build*
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
# Run once a week (even if no new code or PRs) to detect random regressions
- cron: '12 13 * * 2'
- cron: "12 13 * * 2"

env:
# Allow precise monitoring of the save/restore of Gradle User Home by `gradle-build-action`
Expand Down Expand Up @@ -56,7 +55,6 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down
48 changes: 24 additions & 24 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
branches: ["master"]
schedule:
- cron: '32 13 * * 2'
- cron: "32 13 * * 2"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || || github.run_id }}
Expand All @@ -45,30 +45,30 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
language: ["java"]

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Switch to Java 17 from Eclipse Temurin distro
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Switch to Java 17 from Eclipse Temurin distro
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

# TODO: use Autobuild instead of ./gradlew after https://github.com/github/codeql-action/issues/1417 is fixed
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2
- name: Build with Gradle
run: ./gradlew --scan --full-stacktrace -Dorg.gradle.dependency.verification=off compileDebugAndroidTestSources
# TODO: use Autobuild instead of ./gradlew after https://github.com/github/codeql-action/issues/1417 is fixed
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2
- name: Build with Gradle
run: ./gradlew --scan --full-stacktrace -Dorg.gradle.dependency.verification=off compileDebugAndroidTestSources

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit fc4b676

Please sign in to comment.