8000 Add github actions · emilio/unicode-normalization@a6d410c · GitHub
[go: up one dir, main page]

Skip to content

Commit a6d410c

Browse files
committed
Add github actions
1 parent 2aa5c6e commit a6d410c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/rust.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
rust:
18+
- stable
19+
- beta
20+
- nightly
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Install latest nightly
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: ${{ matrix.rust }}
27+
override: true
28+
- name: Build
29+
run: cargo build --verbose
30+
- name: Run tests
31+
run: cargo test --verbose
32+
- name: Run tests without features
33+
run: cargo test --verbose --no-default-features
34+
- name: Package
35+
run: cargo package
36+
- name: Test package
37+
run: cd target/package/unicode-normalization-* && cargo test
38+
- name: Test package without features
39+
run: cd target/package/unicode-normalization-* && cargo test --no-default-features

0 commit comments

Comments
 (0)
0