Introduced protections against predictable RNG abuse #3
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
name: "Main / Pull requests build" | |
on: | |
pull_request: | |
paths-ignore: | |
- '.txt' | |
- 'LICENSE' | |
- 'docs/**' | |
branches: [ main ] | |
push: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
name: Pre-commit check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v4.1.6 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Pre-commit checks | |
uses: pre-commit/action@v3.0.1 | |
- name: pre-commit-ci-lite | |
uses: pre-commit-ci/lite-action@v1.1.0 | |
if: always() | |
build: | |
runs-on: ${{ matrix.os }} | |
needs: [ pre-commit ] | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ windows-latest, ubuntu-latest, macos-13 ] | |
max-parallel: 1 | |
steps: | |
- uses: actions/checkout@v4.1.6 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4.2.1 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
architecture: x64 | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn --no-transfer-progress verify |