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

Update GH Actions versions #4542

Merged
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
29 changes: 10 additions & 19 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,22 @@ jobs:
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
Original file line number Diff line number Diff line change
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