This commit is contained in:
Nanne Baars 2021-03-27 12:51:40 +01:00
parent 302f58609b
commit 5173ef7923

View File

@ -5,36 +5,34 @@ on:
branches: [ '*' ] branches: [ '*' ]
tags-ignore: tags-ignore:
- '*' - '*'
pull_request:
branches: [ develop ]
jobs: jobs:
build: # build:
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
strategy: # strategy:
matrix: # matrix:
os: [ubuntu-latest, windows-latest, macos-latest] # os: [ubuntu-latest, windows-latest, macos-latest]
java: [11, 15] # java: [11, 15]
steps: # steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }} # - name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1 # uses: actions/setup-java@v1
with: # with:
java-version: ${{ matrix.java }} # java-version: ${{ matrix.java }}
architecture: x64 # architecture: x64
- name: Cache Maven packages # - name: Cache Maven packages
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: ~/.m2 # path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} # key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2 # restore-keys: ${{ runner.os }}-m2
- name: Build with Maven # - name: Build with Maven
run: mvn clean install -DskipTests # run: mvn clean install -DskipTests
notify-slack: notify-slack:
if: github.event_name == 'push' && (success() || failure()) if: github.event_name == 'push' && (success() || failure())
needs: # needs:
- build # - build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "Slack workflow notification" - name: "Slack workflow notification"