-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (83 loc) · 2.48 KB
/
Copy pathe2e.yml
File metadata and controls
88 lines (83 loc) · 2.48 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# KRL — E2E, Aspect and Benchmark gates.
#
# These run the checked-in scripts under tests/ and benches/. Each script is
# expected to exit non-zero on failure; none of them are permitted to report
# success without having executed at least one assertion.
name: E2E + Aspect + Bench
on:
push:
branches: [main, master, develop]
paths:
- 'src/**'
- 'tests/**'
- 'benches/**'
- 'spec/**'
- 'examples/**'
- '.github/workflows/e2e.yml'
pull_request:
branches: [main, master]
paths:
- 'src/**'
- 'tests/**'
- 'benches/**'
- 'spec/**'
- 'examples/**'
- '.github/workflows/e2e.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
env:
ZIG_VERSION: 0.16.0
jobs:
e2e:
name: E2E — FFI build, ABI correspondence, grammar smoke
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Zig
uses: goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406 # v2.2.1
with:
version: ${{ env.ZIG_VERSION }}
- name: Run E2E suite
run: bash tests/e2e.sh
aspect:
name: Aspect — architectural invariants
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run aspect tests
run: bash tests/aspect_tests.sh
smoke:
name: Smoke — KRL grammar and examples
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run grammar smoke suite
run: bash tests/smoke/grammar_smoke.sh
ffi-unit:
name: FFI — Zig unit tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Zig
uses: goto-bus-stop/setup-zig@abea47f85e598557f500fa1fd2ab7464fcb39406 # v2.2.1
with:
version: ${{ env.ZIG_VERSION }}
- name: zig build test
run: cd src/interface/ffi && zig build test
- name: zig build
run: cd src/interface/ffi && zig build