obf #67
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: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
JDK_JAVA_OPTIONS: "--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
java-version: [8, 11, 17] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: "adopt" | |
- name: Setup settings.xml | |
run: cp settings.xml ~/.m2/settings.xml | |
- name: Install | |
run: | | |
cd code | |
mvn --batch-mode install | |
- name: Test dreamcatcher | |
run: | | |
cd dreamcatcher | |
mvn --batch-mode test | |
- name: Test bloggy | |
run: | | |
cd samples/bloggy | |
mvn --batch-mode validate | |
mvn --batch-mode test | |
- name: Test helloworld | |
run: | | |
cd samples/helloworld | |
mvn --batch-mode test | |
- name: Test nocturne-archetype | |
run: | | |
cd tools/nocturne-archetype | |
mvn --batch-mode test | |
deploy: | |
if: github.ref == 'refs/heads/master' && github.repository_owner == 'Codeforces' | |
needs: test | |
runs-on: windows-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: "17" | |
distribution: "adopt" | |
- name: Setup settings.xml | |
run: cp settings.xml ~/.m2/settings.xml | |
- name: Deploy | |
run: | | |
cd code | |
mvn --batch-mode deploy -DskipTests |