Skip to content

Commit b77ffee

Browse files
pavelzemanclaude
andcommitted
ci: add GitHub Actions workflow (lint, Kotlin tests, build)
Bootstrap workflow with the jobs that pass on current master: lint, Kotlin tests, and build. TypeScript and unit test jobs are added in #158 alongside the fixes they need (tsconfig exclude, passWithNoTests). Co-authored-by: Claude <claude@anthropic.com>
1 parent 1732edd commit b77ffee

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
name: Lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 18
22+
cache: npm
23+
- run: npm ci
24+
- run: npm run lint
25+
26+
kotlin-tests:
27+
name: Kotlin Tests
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-java@v4
32+
with:
33+
distribution: temurin
34+
java-version: 17
35+
cache: gradle
36+
- name: Run Kotlin unit tests
37+
working-directory: test-runner
38+
run: ./gradlew test
39+
40+
build:
41+
name: Build Package
42+
runs-on: ubuntu-latest
43+
needs: [lint, kotlin-tests]
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: 18
49+
cache: npm
50+
- run: npm ci
51+
- run: npm run prepare

0 commit comments

Comments
 (0)