Skip to content

Commit

Permalink
Merge pull request #115 from scalar-labs/github-actions
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow for CI
  • Loading branch information
feeblefakie authored Jan 17, 2024
2 parents 81b61d7 + 793890f commit 385b9a9
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- master
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 Maven 'verify' task
run: |
./mvnw --batch-mode --update-snapshots verify
- name: Save test reports
if: always()
run: |
mkdir -p /tmp/test_reports/btm
cp -a btm/target/surefire-reports /tmp/test_reports/btm/
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v3
with:
name: test_reports
path: /tmp/test_reports

0 comments on commit 385b9a9

Please sign in to comment.