Skip to content

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
komamitsu committed Jan 16, 2024
1 parent 81b61d7 commit c5580dd
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
# For testing
# branches:
# - main
workflow_dispatch:
pull_request:

env:
TERM: dumb
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [8]
steps:
- uses: actions/checkout@v3

- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: 'temurin'

- name: Setup and execute Gradle 'check' task
uses: gradle/gradle-build-action@v2
with:
arguments: check

- name: Save Gradle test reports
if: always()
run: |
mkdir -p /tmp/gradle_test_reports/btm
cp -a btm/build/reports/tests/test /tmp/gradle_test_reports/btm/
- name: Upload Gradle test reports
if: always()
uses: actions/upload-artifact@v3
with:
name: gradle_test_reports
path: /tmp/gradle_test_reports

0 comments on commit c5580dd

Please sign in to comment.