Skip to content

Commit be32ac8

Browse files
pavelzemanclaude
andauthored
ci: add GitHub Actions workflow (bootstrap for #158) (#161)
* 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> * ci: pin actions to SHAs, add explicit permissions Address CodeRabbit feedback: - Pin actions/checkout, actions/setup-node, actions/setup-java to full commit SHAs to reduce supply-chain risk - Add workflow-level permissions: contents: read for least privilege Co-authored-by: Claude <claude@anthropic.com> * ci: update Node.js from 18 (EOL) to 22 LTS Node 18 reached end-of-life. Node 20 reaches EOL in May 2026. Use Node 22 LTS for longer support runway. Co-authored-by: Claude <claude@anthropic.com> --------- Co-authored-by: Claude <claude@anthropic.com>
1 parent 1732edd commit be32ac8

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)