-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (62 loc) · 2 KB
/
Copy pathvalidate.yml
File metadata and controls
73 lines (62 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Validate polished corpus
# Runs the pipeline's full validation suite on every push to main and every PR.
# Blocking gates: typecheck, polished-frontmatter schema, layer-a vs polished
# structural diff. Advisory (always exit 0): chunking lint and kotlinc snippet
# check. The snippet check is advisory in v1 because kotlinc -script runs full
# semantic analysis and floods on "unresolved reference" without a classpath;
# tracked follow-up loads the Iterable SDK + android.jar so it can become
# blocking in v2.
on:
push:
branches: [main]
paths:
- polished/**
- pipeline/**
- iterable-android/snapshot/**
- .github/workflows/validate.yml
pull_request:
branches: [main]
paths:
- polished/**
- pipeline/**
- iterable-android/snapshot/**
- .github/workflows/validate.yml
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: pipeline/pnpm-lock.yaml
- name: Setup Java (kotlinc dependency)
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- name: Install Kotlin compiler
run: |
set -euo pipefail
curl -sL "https://github.com/JetBrains/kotlin/releases/download/v1.9.24/kotlin-compiler-1.9.24.zip" -o /tmp/kotlinc.zip
unzip -q /tmp/kotlinc.zip -d "$HOME"
echo "$HOME/kotlinc/bin" >> "$GITHUB_PATH"
- name: Verify kotlinc
run: kotlinc -version
- name: Install pipeline deps
working-directory: pipeline
run: pnpm install --frozen-lockfile
- name: Run all gates
working-directory: pipeline
run: pnpm check:all