Skip to content

Commit

Permalink
Merge pull request #4542 from ibi-group/gh-actions-update
Browse files Browse the repository at this point in the history
Update GH Actions versions
  • Loading branch information
leonardehrenfried committed Oct 31, 2022
2 parents 57dba94 + 57bd5e2 commit 4c56ba1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 31 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/cibuild.yml
Expand Up @@ -22,27 +22,23 @@ jobs:
os: [ ubuntu-latest, windows-latest ]
steps:
# Starting in v2.2 checkout action fetches all tags when fetch-depth=0, for auto-versioning.
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0

# Java setup step completes very fast, no need to run in a preconfigured docker container
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
distribution: temurin
cache: maven

# on windows there are frequent failures caused by page files being too small
# https://github.com/actions/virtual-environments/issues/785
- name: Configure Windows Pagefile
if: matrix.os == 'windows-latest'
uses: al-cheb/configure-pagefile-action@v1.2
uses: al-cheb/configure-pagefile-action@v1.3

- name: Prepare coverage agent, build and test
run: mvn --batch-mode --update-snapshots jacoco:prepare-agent verify jacoco:report -P prettierCheck
Expand All @@ -68,19 +64,14 @@ jobs:
CONTAINER_REGISTRY_USER: otpbot
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
distribution: temurin
cache: maven
- name: Build container image with Jib, push to Dockerhub
run: mvn --batch-mode compile com.google.cloud.tools:jib-maven-plugin:build -Djib.to.tags=latest,${{ github.sha }}
2 changes: 1 addition & 1 deletion .github/workflows/close_stale_pr_and_issues.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.repository_owner == 'opentripplanner'
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5.0.0
- uses: actions/stale@v6.0.1
id: stale
with:
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days'
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/performance-test.yml
Expand Up @@ -29,26 +29,22 @@ jobs:
iterations: 1
jfr-delay: "50s"
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven

- name: Set up Maven
uses: stCarolas/setup-maven@v4.2
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.2

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: Build jar
run: mvn -DskipTests --batch-mode package -P prettierSkip

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/post-merge.yml
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
token: ${{ secrets.CHANGELOG_TOKEN }}

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
git config --global user.email 'serialization-version-bot@opentripplanner.org'
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
token: ${{ secrets.CHANGELOG_TOKEN }}

Expand Down

0 comments on commit 4c56ba1

Please sign in to comment.