2024-02-10 10:12:02 +00:00
|
|
|
# Automatically build the project and run any configured tests for every push
|
|
|
|
# and submitted pull request. This can help catch issues that only occur on
|
|
|
|
# certain platforms or Java versions, and provides a first line of defence
|
|
|
|
# against bad commits.
|
|
|
|
|
|
|
|
name: build
|
|
|
|
on: [pull_request, push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-04-16 07:16:20 +00:00
|
|
|
runs-on: "ubuntu-latest"
|
2024-02-10 10:12:02 +00:00
|
|
|
steps:
|
2024-04-16 07:13:53 +00:00
|
|
|
- name: Setup Java
|
2024-02-10 10:12:02 +00:00
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
2024-04-16 07:13:53 +00:00
|
|
|
distribution: 'adopt'
|
|
|
|
java-version: '17'
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Clone repository
|
|
|
|
uses: GuillaumeFalourd/clone-github-repo-action@main
|
2024-02-10 10:12:02 +00:00
|
|
|
with:
|
2024-04-16 07:13:53 +00:00
|
|
|
branch: 'master'
|
|
|
|
owner: 'TopchetoEU'
|
|
|
|
repository: 'java-jscript'
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2024-04-16 07:16:20 +00:00
|
|
|
cd java-jscript; gradle build
|