Skip to content

Commit a07be40

Browse files
committed
feat: add ci
1 parent b6b38ba commit a07be40

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
with:
31+
run: |
32+
cd go-runner
33+
cargo test --all
34+
35+
36+
compat-integration-test-walltime:
37+
runs-on: codspeed-macro
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
submodules: true
42+
- uses: actions/setup-go@v5
43+
- uses: moonrepo/setup-rust@v1
44+
with:
45+
cache-target: release
46+
47+
- name: Build the golang benchmarks
48+
run: |
49+
cd go-runner
50+
cargo r -- build ../example
51+
52+
- name: Run the benchmarks
53+
uses: CodSpeedHQ/action@main
54+
with:
55+
run: |
56+
cd go-runner
57+
cargo r -- run
58+
59+
check:
60+
runs-on: ubuntu-latest
61+
if: always()
62+
needs:
63+
- lint
64+
- tests
65+
- compat-integration-test-walltime
66+
steps:
67+
- uses: re-actors/alls-green@release/v1
68+
with:
69+
jobs: ${{ toJson( needs ) }}

0 commit comments

Comments
 (0)