File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ pull_request :
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ lint :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ submodules : true
15
+ - uses : actions/setup-go@v5
16
+ - uses : moonrepo/setup-rust@v1
17
+ with :
18
+ components : rustfmt, clippy
19
+ -
uses :
pre-commit/[email protected]
20
+ with :
21
+ extra_args : --all-files
22
+
23
+ tests :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+ with :
28
+ submodules : true
29
+ - uses : moonrepo/setup-rust@v1
30
+ - run : |
31
+ cd go-runner
32
+ cargo test --all
33
+
34
+
35
+ compat-integration-test-walltime :
36
+ runs-on : codspeed-macro
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ with :
40
+ submodules : true
41
+ - uses : actions/setup-go@v5
42
+ - uses : moonrepo/setup-rust@v1
43
+ with :
44
+ cache-target : release
45
+
46
+ - name : Build the golang benchmarks
47
+ run : |
48
+ cd go-runner
49
+ cargo r -- build ../example
50
+
51
+ - name : Run the benchmarks
52
+ uses : CodSpeedHQ/action@main
53
+ with :
54
+ run : |
55
+ cd go-runner
56
+ cargo r -- run
57
+
58
+ check :
59
+ runs-on : ubuntu-latest
60
+ if : always()
61
+ needs :
62
+ - lint
63
+ - tests
64
+ - compat-integration-test-walltime
65
+ steps :
66
+ - uses : re-actors/alls-green@release/v1
67
+ with :
68
+ jobs : ${{ toJson( needs ) }}
You can’t perform that action at this time.
0 commit comments