Skip to content

chore: cancel workflow if the PR is updated #146

chore: cancel workflow if the PR is updated

chore: cancel workflow if the PR is updated #146

name: Build And Run Java Test on Ubuntu
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
BUILD_TYPE: Release
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 14
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
architecture: x64
- name: Build and test project with Maven
run: mvn -B package --file pom.xml