Merge pull request #51 from OpenCageData/renovate/gradle-8.x #153
This file contains hidden or 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: Unit Tests workflow | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags-ignore: | |
| - "*.*" | |
| paths-ignore: | |
| - README.md | |
| - CHANGELOG.md | |
| jobs: | |
| gradle_tests: | |
| name: Gradle test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout latest source | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: 8 | |
| cache: "gradle" | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Run Tests | |
| run: ./gradlew -DOPENCAGE_API_KEY=${{ secrets.OPENCAGE_API_KEY }} test |