Skip to content

Commit e55828c

Browse files
djcRalith
authored andcommitted
Switch 0.5.x branch to GitHub Actions
1 parent 75b9b0f commit e55828c

File tree

2 files changed

+73
-15
lines changed

2 files changed

+73
-15
lines changed

.github/workflows/rust.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['master', '0.5.x']
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
rust: [stable, beta]
14+
exclude:
15+
- os: macos-latest
16+
rust: beta
17+
- os: windows-latest
18+
rust: beta
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- uses: actions/checkout@v1
24+
- uses: actions-rs/toolchain@v1
25+
with:
26+
profile: minimal
27+
toolchain: ${{ matrix.rust }}
28+
override: true
29+
- uses: actions-rs/cargo@v1
30+
with:
31+
command: build
32+
args: --workspace --all-targets
33+
- uses: actions-rs/cargo@v1
34+
with:
35+
command: test
36+
args: --workspace
37+
38+
lint:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v1
42+
- uses: actions-rs/toolchain@v1
43+
with:
44+
profile: minimal
45+
toolchain: stable
46+
override: true
47+
components: rustfmt, clippy
48+
- uses: actions-rs/cargo@v1
49+
with:
50+
command: fmt
51+
args: --all -- --check
52+
- uses: actions-rs/cargo@v1
53+
if: always()
54+
with:
55+
command: clippy
56+
args: --workspace --all-targets -- -D warnings
57+
58+
coverage:
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v1
62+
- uses: actions-rs/toolchain@v1
63+
with:
64+
toolchain: nightly
65+
override: true
66+
- uses: actions-rs/tarpaulin@v0.1
67+
- uses: codecov/codecov-action@v1.0.2
68+
with:
69+
token: ${{secrets.CODECOV_TOKEN}}
70+
- uses: actions/upload-artifact@v1
71+
with:
72+
name: code-coverage-report
73+
path: cobertura.xml

azure-pipelines.yml

-15
This file was deleted.

0 commit comments

Comments
 (0)