Skip to content

ci(deps): update danysk/template-for-gradle-plugins digest to 23e2329 #1602

ci(deps): update danysk/template-for-gradle-plugins digest to 23e2329

ci(deps): update danysk/template-for-gradle-plugins digest to 23e2329 #1602

Workflow file for this run

name: CI/CD Process
on:
push:
branches-ignore:
- 'renovate/**'
pull_request:
workflow_dispatch:
jobs:
select-tests:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-select-tests-${{ github.event.number || github.ref }}
cancel-in-progress: true
outputs:
tests: ${{ steps.trick.outputs.tests }}
steps:
- name: Trick Renovate
id: trick
shell: bash
run: |
USES=$(cat <<TRICK_RENOVATE
- uses: DanySK/Template-for-Gradle-Plugins@23e23296297134ec22128037ef9d37bb42bfa17f
- uses: DanySK/Template-for-Kotlin-Multiplatform-Projects@0.1.25
TRICK_RENOVATE
)
export USES="$USES"
ruby -e 'puts "tests=#{ENV["USES"].lines.map { |line| /^-\s+uses:\s+([^\s]+\/[^\s]+)@(.*)\s*$/.match(line) }.map { |match| [match[1], match[2]] }}"' >> $GITHUB_OUTPUT
test:
needs:
- select-tests
strategy:
fail-fast: false
matrix:
os: [ windows-2022, macos-14, ubuntu-22.04 ]
test: ${{ fromJson(needs.select-tests.outputs.tests) }}
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-test-${{ matrix.os }}-${{ matrix.test[0] }}-${{ matrix.test[1] }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
with:
path: 'action'
- name: Checkout test repo
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
repository: ${{ matrix.test[0] }}
path: 'target'
ref: ${{ matrix.test[1] }}
- uses: ./action
with:
build-command: ./gradlew tasks
check-command: |
for x in 1 2 3; do
echo $x
done
working-directory: target
should-run-codecov: false
clean-command: ./gradlew clean
- uses: ./action
with:
working-directory: target
should-run-codecov: false
release:
if: github.event_name == 'push'
needs:
- test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
token: ${{ secrets.DEPLOYMENT_TOKEN }}
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
npx semantic-release
success:
runs-on: ubuntu-22.04
needs:
- select-tests
- test
- release
if: >-
always() && (
contains(join(needs.*.result, ','), 'failure')
|| !contains(join(needs.*.result, ','), 'cancelled')
)
steps:
- name: Verify that there were no failures
run: ${{ !contains(join(needs.*.result, ','), 'failure') }}