Sync tests for practice exercise bank-account
#1164
Workflow file for this run
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: [push, pull_request, workflow_dispatch] | |
defaults: | |
run: | |
working-directory: exercises | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Check if tests compile cleanly with starter sources | |
run: ./gradlew compileStarterTestJava --continue | |
- name: Run checkstyle | |
run: ./gradlew check --exclude-task test --continue | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Test all reference implementations with Gradle | |
run: ./gradlew test --continue |