Update pre-commit #642
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 run the tests on the java version of tictactoe | |
name: java | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./tictactoe_java | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'oracle' # See 'Supported distributions' for available options | |
java-version: '22' | |
cache: 'maven' | |
- name: Check style | |
run: mvn checkstyle:check | |
- name: Build with Maven | |
run: mvn --batch-mode --update-snapshots package | |
- name: Test | |
run: mvn test |