diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 13fca80b..388a5fea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,3 @@ -# This is a basic workflow to help you get started with Actions - name: Build and Publish on: @@ -16,8 +14,6 @@ on: - "[0-9]+.[0-9]+.[0-9]+-openj9-nightly" - "[0-9]+.[0-9]+.[0-9]+-adopt11" - "[0-9]+.[0-9]+.[0-9]+-adopt13" - pull_request: - branches: [ master ] jobs: build: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..1250fab2 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,19 @@ +name: PR validation + +on: + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Build Docker image + uses: docker/build-push-action@v1.1.0 + with: + tag_with_sha: true + cache_froms: itzg/minecraft-server:latest + push: false