Skip to content

Commit 9e7ce50

Browse files
committed
github actions workflows added.
1 parent 6173318 commit 9e7ce50

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types:
6+
- released
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install Rust
14+
run: rustup update stable
15+
- name: Build and publish
16+
run: |
17+
cargo login ${{ secrets.CRATESIO_TOKEN }}
18+
cargo publish

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
- master
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test:
14+
name: Run unit-tests
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Install Rust
19+
run: rustup update stable
20+
- name: Run tests
21+
run: cargo test --all-features

0 commit comments

Comments
 (0)