Skip to content

Commit c9e7ac6

Browse files
authored
Set up GitHub Actions (#19)
Closes #13
1 parent a0a5416 commit c9e7ac6

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
schedule:
9+
- cron: '0 1 27 * *'
10+
11+
jobs:
12+
main:
13+
name: Main
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
rust:
20+
- nightly
21+
- stable
22+
- 1.12.0
23+
include:
24+
- rust: nightly
25+
components: clippy
26+
27+
steps:
28+
29+
- name: Check out repository
30+
uses: actions/checkout@v2
31+
32+
- name: Install Rust
33+
uses: actions-rs/toolchain@v1
34+
with:
35+
toolchain: ${{ matrix.rust }}
36+
profile: minimal
37+
override: true
38+
components: ${{ matrix.components }}
39+
40+
- name: Run tests
41+
uses: actions-rs/cargo@v1
42+
with:
43+
command: test
44+
45+
- if: ${{ matrix.rust == 'nightly' }}
46+
name: Check Clippy
47+
uses: actions-rs/cargo@v1
48+
with:
49+
command: clippy
50+
args: -- -D warnings

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)