Skip to content

Commit

Permalink
Merge pull request #265 from slovdahl/run-github-actions-on-pull-requ…
Browse files Browse the repository at this point in the history
…ests

Run GitHub actions on PRs and merge all workflows to one file
  • Loading branch information
jfarcand authored Feb 2, 2024
2 parents 1ae93e2 + ed39690 commit 2be83ac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 41 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/maven-11.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/maven-13.yml

This file was deleted.

27 changes: 20 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
name: jdk8
name: Java tests

on: [push]
on:
push:
pull_request:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
java:
- '8'
- '11'
- '17'

name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3

- name: Set up Eclipse Temurin ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: temurin
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit 2be83ac

Please sign in to comment.