diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000000..77c9e18a22 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,27 @@ +name: Java CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: read-all +jobs: + build-linux: + name: build-linux + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '11' + cache: 'gradle' + - name: Build with Gradle + run: chmod +x gradlew && ./gradlew build -x checkstyleMain diff --git a/README.md b/README.md index 18fae90c6b..7db5cdec7d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [LeetCode](https://leetcode.com/problemset/algorithms/) [](LICENSE.md) [](https://travis-ci.org/fishercoder1534/Leetcode)  +# [LeetCode](https://leetcode.com/problemset/algorithms/) [](LICENSE.md) [](https://github.com/fishercoder1534/Leetcode/actions/workflows/gradle.yml)  _If you like this project, please leave me a star._ ★