Skip to content

Commit f2b1521

Browse files
Adding pipeline testing stage
1 parent aee3abe commit f2b1521

File tree

2 files changed

+50
-3
lines changed

2 files changed

+50
-3
lines changed

.github/workflows/pipeline.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ jobs:
1313
build:
1414
uses: ./.github/workflows/build.yml
1515
needs: failfast
16-
# tests:
17-
# uses: ./.github/workflows/test.yml
18-
# needs: build
16+
17+
tests:
18+
uses: ./.github/workflows/test.yml
19+
needs: build
20+
1921
# release:
2022
# uses: ./.github/workflows/release.yml
2123
# needs: tests

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Tests
2+
3+
on: [workflow_call]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
tests:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/download-artifact@v3
16+
with:
17+
name: build
18+
path: target/debug
19+
- name: Show directory contents
20+
run: tree -L 3
21+
- name: Run tests
22+
run: cargo test --verbose
23+
24+
25+
name: Tests
26+
27+
on: [workflow_call]
28+
29+
jobs:
30+
linters:
31+
name: Tests 🧪
32+
33+
runs-on: ubuntu-latest
34+
container:
35+
image: mattgomes28/urchin-golang:0.2
36+
options: --user 1001
37+
38+
steps:
39+
- uses: actions/checkout@v3
40+
41+
- name: Running Go Tests 🧪
42+
run: |
43+
go test ./... -v -race
44+
45+

0 commit comments

Comments
 (0)