Skip to content

Commit

Permalink
Run GitHub actions on PRs and merge all workflows to one file
Browse files Browse the repository at this point in the history
  • Loading branch information
slovdahl committed Jan 26, 2024
1 parent 426740e commit ed39690
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 ed39690

Please sign in to comment.