Skip to content

Commit

Permalink
CI Maintenance (#1167)
Browse files Browse the repository at this point in the history
* Update GitHub Action workflows

- Bump up action versions
- Use builtin caches in actions

* Setup Dependabot
  • Loading branch information
syoon2 committed Jan 1, 2024
1 parent 9c98ae8 commit e8c9ddb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "weekly"
13 changes: 4 additions & 9 deletions .github/workflows/PR-workflow.yaml
Expand Up @@ -10,18 +10,13 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: |
set -e
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/master-workflow.yaml
Expand Up @@ -16,30 +16,25 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: 'temurin'
cache: 'maven'

- name: Build with Maven
run: |
set -e
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V && mvn verify -B && mvn javadoc:aggregate && mvn checkstyle:check -P checkstyle
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 14
cache: 'npm'
- run: npm install -g hercule@5.0.0

- name: Run prepareDocs script
Expand All @@ -54,7 +49,7 @@ jobs:
shell: bash

- name: Publish Github Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
token: ${{ secrets.PAGES_TOKEN }}
branch: gh-pages
Expand Down

0 comments on commit e8c9ddb

Please sign in to comment.