Skip to content

Commit c871f26

Browse files
committed
Add GitHub Actions CI workflow
1 parent c6e0dd3 commit c871f26

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
# Runs on PRs and pushes to the default branch. We use `pull_request` (never
4+
# `pull_request_target`), so secrets are NOT exposed to pull requests from forks.
5+
on:
6+
pull_request:
7+
push:
8+
branches: [main, master]
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ci-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-java@v4
23+
with:
24+
distribution: temurin
25+
java-version: '17'
26+
- name: Run tests
27+
working-directory: client
28+
run: |
29+
chmod +x gradlew
30+
./gradlew test --no-daemon

0 commit comments

Comments
 (0)