feat: imporve MathGame 加入sleep及改为多层调用以模拟实际情况,方便测试 #1210
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
name: JavaCI | |
on: [push, pull_request] | |
jobs: | |
ubuntu_build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [8, 11, 17, 19] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'zulu' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn clean install -P full | |
windows_build: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
java: [8, 11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'zulu' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn clean install -P full | |
macos_build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
java: [8, 11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'zulu' | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn clean install -P full |