Skip to content

Commit

Permalink
Test with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Nov 29, 2023
1 parent cf701cd commit 9b4cd14
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check
on: [ pull_request, push ]
jobs:
check:
runs-on: ${{ matrix.os }}
# push: always run.
# pull_request: run only when the PR is submitted from a forked repository, not within this repository.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
gradle:
- "8.4"
steps:
- name: Set Git's core.autocrlf to false for Windows before checkout
run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- name: Bump Gradle version
run: ./gradlew wrapper --gradle-version=${{ matrix.gradle }}
- name: Re-bump Gradle version
run: ./gradlew wrapper --gradle-version=${{ matrix.gradle }}
- name: Set up OpenJDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "temurin"
cache: "gradle"
- name: Check
run: ./gradlew --stacktrace check
- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.os }}
path: build/reports

0 comments on commit 9b4cd14

Please sign in to comment.