Skip to content

Commit 3b5315a

Browse files
committed
chore: run tests before publish
1 parent 5e865f1 commit 3b5315a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ on:
55
types: [created]
66

77
jobs:
8-
publish-crate:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
- uses: actions-rs/cargo@v1
16+
with:
17+
command: test
18+
19+
publish:
20+
needs: test
921
runs-on: ubuntu-latest
1022
steps:
1123
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)