Skip to content

Commit 1f62971

Browse files
authored
Merge pull request #40 from cartland/workflow_dispatch
Add triggers to .github/workflows/
2 parents dcdbd2d + 12b78b6 commit 1f62971

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: CI
55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
77
on:
8+
workflow_dispatch:
89
push:
910
branches: [ master ]
1011
pull_request:
@@ -20,25 +21,24 @@ jobs:
2021
# Steps represent a sequence of tasks that will be executed as part of the job
2122
steps:
2223
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2425

2526
- name: Validate Gradle Wrapper
2627
uses: gradle/wrapper-validation-action@v1
27-
2828
# Install and setup JDK 11
2929
- name: Setup JDK 11
30-
uses: actions/setup-java@v1
30+
uses: actions/setup-java@v4
3131
with:
32+
distribution: 'zulu'
3233
java-version: 11
3334

3435
# Runs a single command using the runners shell
3536
- name: run checks
3637
run: ./gradlew check --stacktrace
3738

3839
- name: Archive test logs
39-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
4041
if: failure()
4142
with:
4243
name: gradle-test-logs
4344
path: ./**/build/reports/tests
44-

0 commit comments

Comments
 (0)