Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize CI a bit #452

Merged
merged 7 commits into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@ jobs:
build:
name: Maven build
runs-on: ubuntu-18.04

strategy:
matrix:
maven-version:
- '3.3.9'
- '3.6.1'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '1.8'
java-version: 8
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: .github/scripts/build.sh
env:
Expand All @@ -50,14 +51,16 @@ jobs:
deploy:
name: Maven deploy
runs-on: ubuntu-18.04
if: github.repository == 'gantsign/ktlint-maven-plugin'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs: build-all
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '1.8'
java-version: 8
distribution: 'temurin'
- name: Install GPG key
run: |-
gpg --batch --import-options import-show --import << EOF
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@ jobs:
build:
name: Maven build
runs-on: ubuntu-18.04

strategy:
matrix:
maven-version:
- '3.3.9'
- '3.6.1'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '1.8'
java-version: 8
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: .github/scripts/build.sh
env:
Expand All @@ -50,14 +51,16 @@ jobs:
deploy:
name: Maven deploy
runs-on: ubuntu-18.04
if: github.repository == 'gantsign/ktlint-maven-plugin'
needs: build-all
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '1.8'
java-version: 8
distribution: 'temurin'
- name: Install GPG key
run: |-
gpg --batch --import-options import-show --import << EOF
Expand All @@ -81,14 +84,16 @@ jobs:
deploy-site:
name: Maven deploy site
runs-on: ubuntu-18.04
if: github.repository == 'gantsign/ktlint-maven-plugin'
needs: deploy
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '1.8'
java-version: 8
distribution: 'temurin'
- name: Configure Git user
run: >-
git config --global user.name 'John Freeman' &&
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Verify

on:
pull_request: {}
pull_request:

env:
JAVA_TOOL_OPTIONS: >-
Expand All @@ -14,21 +14,22 @@ jobs:
build:
name: Maven build
runs-on: ubuntu-18.04

strategy:
matrix:
maven-version:
- '3.3.9'
- '3.6.1'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: '1.8'
java-version: 8
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: .github/scripts/build.sh
env:
Expand Down