Skip to content

Commit f4c48cc

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

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)