Skip to content

Merge pull request #5 from Codeforces/dev-mikemirzayanov #5

Merge pull request #5 from Codeforces/dev-mikemirzayanov

Merge pull request #5 from Codeforces/dev-mikemirzayanov #5

Workflow file for this run

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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 17
distribution: "adopt"
- name: Test
run: |
cd code
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: Deploy
run: |
cd code
mvn --batch-mode deploy -DskipTests