Skip to content

Commit

Permalink
Update github-workflows-kt to v0.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Apr 28, 2023
1 parent 8f5f426 commit 2d52d58
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 253 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branches-and-prs.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.41.0")
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.42.0")
@file:DependsOn("org.codehaus.groovy:groovy:3.0.15")

import groovy.lang.Binding
Expand Down
146 changes: 73 additions & 73 deletions .github/workflows/branches-and-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,105 +2,105 @@
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt

name: Verify Branches and PRs
name: 'Verify Branches and PRs'
on:
push:
branches-ignore:
- master
- gh-pages
- 'master'
- 'gh-pages'
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
jobs:
check_yaml_consistency:
name: Check YAML consistency
runs-on: ubuntu-latest
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Execute script
run: rm '.github/workflows/branches-and-prs.yml' && '.github/workflows/branches-and-prs.main.kts'
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/branches-and-prs.yml'
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/branches-and-prs.yml'' && ''.github/workflows/branches-and-prs.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/branches-and-prs.yml'''
check_all_workflow_yaml_consistency:
name: Check all Workflow YAML consistency
runs-on: ubuntu-latest
name: 'Check all Workflow YAML consistency'
runs-on: 'ubuntu-latest'
needs:
- check_yaml_consistency
- 'check_yaml_consistency'
steps:
- id: step-0
name: Checkout Repository
uses: actions/checkout@v3
- id: step-1
name: Regenerate all workflow YAMLs and check for modifications
run: find .github/workflows -mindepth 1 -maxdepth 1 -name "*.main.kts" | xargs -ri sh -c '{} && git diff --exit-code'
- id: 'step-0'
name: 'Checkout Repository'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Regenerate all workflow YAMLs and check for modifications'
run: 'find .github/workflows -mindepth 1 -maxdepth 1 -name "*.main.kts" | xargs -ri sh -c ''{} && git diff --exit-code'''
build-and-verify:
name: Build and Verify
runs-on: ${{ matrix.os }}
name: 'Build and Verify'
runs-on: '${{ matrix.os }}'
needs:
- check_yaml_consistency
- 'check_yaml_consistency'
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- 'ubuntu-latest'
variant:
- 2.5
- 3.0
- 4.0
- '2.5'
- '3.0'
- '4.0'
java:
- 8
- 11
- 17
- '8'
- '11'
- '17'
exclude:
- os: ubuntu-latest
variant: 2.5
java: 17
- os: 'ubuntu-latest'
variant: '2.5'
java: '17'
include:
- os: windows-latest
variant: 2.5
java: 8
- os: windows-latest
variant: 3.0
java: 8
- os: windows-latest
variant: 4.0
java: 8
- os: macos-latest
variant: 2.5
java: 8
- os: macos-latest
variant: 3.0
java: 8
- os: macos-latest
variant: 4.0
java: 8
- os: 'windows-latest'
variant: '2.5'
java: '8'
- os: 'windows-latest'
variant: '3.0'
java: '8'
- os: 'windows-latest'
variant: '4.0'
java: '8'
- os: 'macos-latest'
variant: '2.5'
java: '8'
- os: 'macos-latest'
variant: '3.0'
java: '8'
- os: 'macos-latest'
variant: '4.0'
java: '8'
steps:
- id: step-0
name: Checkout Repository
uses: actions/checkout@v3
- id: 'step-0'
name: 'Checkout Repository'
uses: 'actions/checkout@v3'
with:
fetch-depth: 2
- id: step-1
name: Set up JDKs
uses: ./.github/actions/setup-build-env
fetch-depth: '2'
- id: 'step-1'
name: 'Set up JDKs'
uses: './.github/actions/setup-build-env'
with:
additional-java-version: ${{ matrix.java }}
- id: step-2
name: Build Spock
uses: gradle/gradle-build-action@v2
additional-java-version: '${{ matrix.java }}'
- id: 'step-2'
name: 'Build Spock'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: --no-parallel --stacktrace ghActionsBuild "-Dvariant=${{ matrix.variant }}" "-DjavaVersion=${{ matrix.java }}"
arguments: '--no-parallel --stacktrace ghActionsBuild "-Dvariant=${{ matrix.variant }}" "-DjavaVersion=${{ matrix.java }}"'
env:
ORG_GRADLE_PROJECT_spockBuildCacheUsername: ${{ secrets.SPOCK_BUILD_CACHE_USERNAME }}
ORG_GRADLE_PROJECT_spockBuildCachePassword: ${{ secrets.SPOCK_BUILD_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
- id: step-3
name: Upload to Codecov.io
uses: codecov/codecov-action@v3
ORG_GRADLE_PROJECT_spockBuildCacheUsername: '${{ secrets.SPOCK_BUILD_CACHE_USERNAME }}'
ORG_GRADLE_PROJECT_spockBuildCachePassword: '${{ secrets.SPOCK_BUILD_CACHE_PASSWORD }}'
GRADLE_ENTERPRISE_ACCESS_KEY: '${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}'
- id: 'step-3'
name: 'Upload to Codecov.io'
uses: 'codecov/codecov-action@v3'
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.41.0")
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.42.0")

import io.github.typesafegithub.workflows.actions.actions.CheckoutV3
import io.github.typesafegithub.workflows.actions.github.CodeqlActionAnalyzeV2
Expand Down
72 changes: 36 additions & 36 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,58 @@
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt

name: Code scanning - action
name: 'Code scanning - action'
on:
push:
branches:
- '!dependabot/**'
pull_request: {}
schedule:
- cron: 0 15 * * TUE
- cron: '0 15 * * TUE'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}'
cancel-in-progress: true
jobs:
check_yaml_consistency:
name: Check YAML consistency
runs-on: ubuntu-latest
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Execute script
run: rm '.github/workflows/codeql-analysis.yml' && '.github/workflows/codeql-analysis.main.kts'
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/codeql-analysis.yml'
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/codeql-analysis.yml'' && ''.github/workflows/codeql-analysis.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/codeql-analysis.yml'''
codeql-build:
name: CodeQL-Build
runs-on: ubuntu-latest
name: 'CodeQL-Build'
runs-on: 'ubuntu-latest'
needs:
- check_yaml_consistency
- 'check_yaml_consistency'
strategy:
fail-fast: false
matrix:
variant:
- 2.5
- 3.0
- 4.0
- '2.5'
- '3.0'
- '4.0'
steps:
- id: step-0
name: Checkout Repository
uses: actions/checkout@v3
- id: step-1
name: Set up JDKs
uses: ./.github/actions/setup-build-env
- id: step-2
name: Initialize CodeQL
uses: github/codeql-action/init@v2
- id: step-3
name: Build Spock Classes
uses: gradle/gradle-build-action@v2
- id: 'step-0'
name: 'Checkout Repository'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Set up JDKs'
uses: './.github/actions/setup-build-env'
- id: 'step-2'
name: 'Initialize CodeQL'
uses: 'github/codeql-action/init@v2'
- id: 'step-3'
name: 'Build Spock Classes'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: --stacktrace --no-build-cache testClasses "-Dvariant=${{ matrix.variant }}"
- id: step-4
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
arguments: '--stacktrace --no-build-cache testClasses "-Dvariant=${{ matrix.variant }}"'
- id: 'step-4'
name: 'Perform CodeQL Analysis'
uses: 'github/codeql-action/analyze@v2'
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.41.0")
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.42.0")

import io.github.typesafegithub.workflows.actions.actions.CheckoutV3
import io.github.typesafegithub.workflows.actions.gradle.WrapperValidationActionV1
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt

name: Validate Gradle Wrapper
name: 'Validate Gradle Wrapper'
on:
push: {}
pull_request: {}
jobs:
check_yaml_consistency:
name: Check YAML consistency
runs-on: ubuntu-latest
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Execute script
run: rm '.github/workflows/gradle-wrapper-validation.yml' && '.github/workflows/gradle-wrapper-validation.main.kts'
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/gradle-wrapper-validation.yml'
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/gradle-wrapper-validation.yml'' && ''.github/workflows/gradle-wrapper-validation.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/gradle-wrapper-validation.yml'''
validation:
name: Validation
runs-on: ubuntu-latest
name: 'Validation'
runs-on: 'ubuntu-latest'
needs:
- check_yaml_consistency
- 'check_yaml_consistency'
steps:
- id: step-0
name: Checkout Repository
uses: actions/checkout@v3
- id: step-1
name: Validate Wrapper
uses: gradle/wrapper-validation-action@v1
- id: 'step-0'
name: 'Checkout Repository'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Validate Wrapper'
uses: 'gradle/wrapper-validation-action@v1'
2 changes: 1 addition & 1 deletion .github/workflows/release.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.41.0")
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:0.42.0")
@file:DependsOn("org.codehaus.groovy:groovy:3.0.15")

import groovy.lang.Binding
Expand Down
Loading

0 comments on commit 2d52d58

Please sign in to comment.