Skip to content

Commit

Permalink
Turnstyle -> Wait for concurrent jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Apr 19, 2021
1 parent be676c9 commit 48e650c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [ 8, 11, 16 ]
java-version: [8, 11, 16]

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Build and test with Maven
run: mvn -B package --file pom.xml

- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Build and test with Maven
run: mvn -B package --file pom.xml

pre-release:
name: GitHub pre-release
Expand All @@ -37,7 +36,7 @@ jobs:
java-version: 8
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Turnstyle
- name: Wait for concurrent jobs
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -51,16 +50,15 @@ jobs:
files: |
target/*.jar
docker-hub:
name: Docker Hub
runs-on: ubuntu-latest
needs: test

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Turnstyle
- name: Wait for concurrent jobs
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,7 +69,7 @@ jobs:
VERSION=latest
TAGS="${DOCKER_IMAGE}:${VERSION}"
echo ::set-output name=tags::${TAGS}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -105,4 +103,4 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}
repository: lszeremeta/sdfeater
repository: lszeremeta/sdfeater
24 changes: 11 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [ 8, 11, 16 ]
java-version: [8, 11, 16]

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Build and test with Maven
run: mvn -B package --file pom.xml

- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Build and test with Maven
run: mvn -B package --file pom.xml

github-release:
name: GitHub Release
Expand All @@ -46,12 +45,11 @@ jobs:
files: |
target/*.jar
docker-hub:
name: Docker Hub
runs-on: ubuntu-latest
needs: test

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -62,7 +60,7 @@ jobs:
VERSION=${GITHUB_REF#refs/tags/v}
TAGS="${DOCKER_IMAGE}:${VERSION}"
echo ::set-output name=tags::${TAGS}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand Down Expand Up @@ -96,4 +94,4 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}
repository: lszeremeta/sdfeater
repository: lszeremeta/sdfeater
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [ 8, 11, 16 ]
java-version: [8, 11, 16]

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Build and test with Maven
run: mvn -B package --file pom.xml
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Build and test with Maven
run: mvn -B package --file pom.xml

0 comments on commit 48e650c

Please sign in to comment.