chore(core-deps): update actions/cache action to v4.2.0 #2122
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: CI/CD Process | |
on: | |
push: | |
branches-ignore: | |
- 'renovate/**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
select-tests: | |
runs-on: ubuntu-24.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/[email protected] | |
- uses: DanySK/[email protected] | |
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-24.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/[email protected] | |
with: | |
path: 'action' | |
- name: Checkout test repo | |
uses: actions/[email protected] | |
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-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
token: ${{ secrets.DEPLOYMENT_TOKEN }} | |
- name: Install Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: package.json | |
- name: Semantic Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npx semantic-release | |
success: | |
runs-on: ubuntu-24.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') }} |