Merge pull request #90 from outfoxx/task/update-amf #275
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
branches: [ main ] | |
jobs: | |
build-test: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: adopt | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Build & Test | |
uses: gradle/gradle-build-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
arguments: check sonar | |
- name: Report Tests | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() | |
with: | |
name: Tests Results | |
path: "**/build/test-results/*/*.xml" | |
reporter: java-junit |