Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
minidragon88 committed May 19, 2023
1 parent 9c8315f commit edf56c9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and test

on: push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: "zulu"

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with testing
run: ./gradlew checkstyle test jacocoTestReport

- uses: actions/upload-artifact@v3
if: always()
with:
name: tests
path: ./build/reports/tests/test

- uses: actions/upload-artifact@v3
if: success()
with:
name: jacoco
path: ./build/reports/jacoco/test

0 comments on commit edf56c9

Please sign in to comment.