JavaAlgorithms/.github/workflows/build.yml

27 lines
523 B
YAML
Raw Normal View History

name: Build
on:
push:
paths:
- 'src/**'
- '**.yml'
- '**.xml'
- '**.Dockerfile'
pull_request:
paths:
- 'src/**'
- '**.yml'
- '**.xml'
- '**.Dockerfile'
2020-10-24 16:48:33 +08:00
jobs:
2020-10-24 17:23:09 +08:00
build:
2020-10-24 16:48:33 +08:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
2021-12-07 14:22:28 +08:00
uses: actions/setup-java@v2
2020-10-24 16:48:33 +08:00
with:
java-version: 17
2021-12-07 14:22:28 +08:00
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify