Skip to content

[circleci] Update macos executor #1

[circleci] Update macos executor

[circleci] Update macos executor #1

Workflow file for this run

###
### Author: ngoanh2n
### https://docs.github.com/en/actions
### https://github.com/marketplace?type=actions
###
name: Build and Test
on:
push:
branches:
- master
pull_request:
types: [opened, review_requested]
jobs:
build:
defaults:
run:
shell: bash
name: Build
runs-on: ubuntu-latest
steps:
- name: "[Prepare] Checkout"
uses: actions/checkout@v4
- name: "[Prepare] Setup JDK"
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: "[Build] Execute"
run: ./gradlew clean build
test:
defaults:
run:
shell: bash
strategy:
matrix:
os: [macos-latest, windows-latest]
java_version: [17, 21]
name: ${{ matrix.os }}_java${{ matrix.java_version }}
runs-on: ${{ matrix.os }}
env:
MATRIX_JOB_NAME: ${{ matrix.os }}_java${{ matrix.java_version }}
steps:
- name: "[Prepare] Checkout"
uses: actions/checkout@v4
- name: "[Prepare] Setup JDK"
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java_version }}
- name: "[Test] Execute"
run: ./gradlew clean test
- if: success() || failure()
name: "[Report] JUnit report"
uses: mikepenz/action-junit-report@v4
with:
check_name: JUnit ${{ env.MATRIX_JOB_NAME }}
report_paths: build/reports/test/TEST-*.xml
automerge:
name: Auto Merge PR from Dependabot
if: ${{ github.actor == 'dependabot[bot]' }}
needs: [build]
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Merge PR from Dependabot
uses: fastify/github-action-merge-dependabot@v3.10.1
with:
github-token: ${{secrets.GITHUB_TOKEN}}
target: minor
merge-method: rebase