Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Scogun committed Jan 22, 2024
1 parent 855ec7f commit 9bbf062
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set Up JDK
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: "Build and Test"

on:
workflow_dispatch:
workflow_call:
pull_request_target:
branches: [main]
pull_request:
branches:
- 'main'

jobs:
build-and-test:
Expand All @@ -12,10 +14,10 @@ jobs:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: "Set Up JDK"
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
Expand All @@ -26,7 +28,7 @@ jobs:
run: chmod +x gradlew

- name: "Build with Gradle"
run: ./gradlew build
run: ./gradlew build -x check
shell: bash

- name: "Tests"
Expand Down

0 comments on commit 9bbf062

Please sign in to comment.