Unciv/.github/workflows/buildAndTest.yml
dependabot[bot] 0fb32d8f3f
Bump gradle/gradle-build-action in /.github/workflows (#9302)
Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action) from 2.3.3 to 2.4.2.
- [Release notes](https://github.com/gradle/gradle-build-action/releases)
- [Commits](https://github.com/gradle/gradle-build-action/compare/v2.3.3...v2.4.2)

---
updated-dependencies:
- dependency-name: gradle/gradle-build-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 19:01:29 +03:00

36 lines
783 B
YAML

# Jobs to test the code base and build the client and server app
name: Build and test
on:
# Triggers the workflow on any push or pull request
push:
pull_request:
jobs:
# We only need the minimum
code-checks:
name: Check code and run unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
cache: 'gradle'
distribution: 'temurin'
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2.4.2
- name: Compile kotlin and build classes
run: ./gradlew classes
- name: Run code checks
run: ./gradlew check
- name: Run unit tests
run: ./gradlew --no-build-cache cleanTest test tests:test