Skip to content

Commit b6b8e62

Browse files
committed
feat: add ci
1 parent ef3d64d commit b6b8e62

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
lfs: true
29+
submodules: true
30+
- uses: moonrepo/setup-rust@v1
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: Run the benchmarks
48+
uses: CodSpeedHQ/action@main
49+
with:
50+
working-directory: example
51+
run: cargo r --manifest-path ../go-runner/Cargo.toml -- test -bench=.
52+
53+
check:
54+
runs-on: ubuntu-latest
55+
if: always()
56+
needs:
57+
- lint
58+
- tests
59+
- compat-integration-test-walltime
60+
steps:
61+
- uses: re-actors/alls-green@release/v1
62+
with:
63+
jobs: ${{ toJson( needs ) }}

0 commit comments

Comments
 (0)