Skip to content

Commit

Permalink
chore: test in java 17 and 21 (#32)
Browse files Browse the repository at this point in the history
<!-- Thanks for opening a PR! Here are some quick tips:
If this is your first time contributing, [read our Contributing
Guidelines](https://github.com/openfga/.github/blob/main/CONTRIBUTING.md)
to learn how to create an acceptable PR for this repo.
By submitting a PR to this repository, you agree to the terms within the
[OpenFGA Code of
Conduct](https://github.com/openfga/.github/blob/main/CODE_OF_CONDUCT.md)

If your PR is under active development, please submit it as a "draft".
Once it's ready, open it up for review.
-->

<!-- Provide a brief summary of the changes -->

## Description
<!-- Provide a detailed description of the changes -->

Runs tests in both Java 17 and Java 21 (supported LTE versions)

## Review Checklist
- [x] I have clicked on ["allow edits by
maintainers"](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork).
- [ ] I have added documentation for new/changed functionality in this
PR or in a PR to [openfga.dev](https://github.com/openfga/openfga.dev)
[Provide a link to any relevant PRs in the references section above]
- [x] The correct base branch is being used, if not `main`
- [ ] I have added tests to validate that the change in functionality is
working as expected
  • Loading branch information
jimmyjames authored Apr 8, 2024
2 parents ef72f07 + e1c6dd5 commit 1422aa1
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Checks

on: [pull_request, push]
on:
merge_group:
push:
pull_request:
workflow_dispatch:

jobs:
fossa:
Expand All @@ -24,18 +28,24 @@ jobs:
with:
api-key: ${{ secrets.FOSSA_API_KEY }}
run-tests: true
build:

test:
name: Run Checks
runs-on: ubuntu-latest

strategy:
matrix:
java: [17, 21]

steps:
- name: Checkout the source
uses: actions/checkout@v4
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Set up JDK 17
uses: actions/setup-java@v4
uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 # v2.1.2
- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: "17"
java-version: ${{ matrix.java }}
distribution: "temurin"
- name: Run Gradle check task
run: ./gradlew check --continue

0 comments on commit 1422aa1

Please sign in to comment.