Skip to content

Commit 76963ce

Browse files
committed
separated build and test workflows
1 parent eda86f6 commit 76963ce

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed

.github/workflows/build.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Build
22

33
on:
4-
push:
5-
branches: [ ci ]
6-
pull_request:
7-
branches: [ ci ]
4+
workflow_dispatch:
5+
# push:
6+
# branches: [ ci ]
7+
# pull_request:
8+
# branches: [ ci ]
89

910
env:
1011
CARGO_TERM_COLOR: always
@@ -23,14 +24,5 @@ jobs:
2324
steps:
2425
- uses: actions/checkout@v3
2526

26-
- name: Unit tests
27-
run: cargo test --all
28-
29-
- name: Integration tests
30-
run: cargo run -p integration-tests
31-
32-
- name: Build simple
33-
run: ./build.sh
34-
3527
- name: Build in docker
3628
run: ./build-in-docker.sh

.github/workflows/test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ ci ]
6+
pull_request:
7+
branches: [ ci ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
GITHUB_ACTIONS: true
12+
13+
jobs:
14+
15+
build:
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
target: [
20+
{ runner: ubuntu-latest, os: linux },
21+
]
22+
runs-on: ${{ matrix.target.runner }}
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Run tests
27+
run: |
28+
echo Unit tests:
29+
cargo test --all
30+
31+
echo Integration tests:
32+
cargo run -p integration-tests

0 commit comments

Comments
 (0)