Skip to content

Commit 77661f9

Browse files
Set up Github Actions
...using the template from rust-lang/polonius#164.
1 parent de7ad5a commit 77661f9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: Run tests
12+
runs-on: ubuntu-latest
13+
continue-on-error: ${{ matrix.rust == 'nightly' }}
14+
strategy:
15+
matrix:
16+
rust: [beta, nightly]
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 1
21+
22+
- name: Install rust toolchain
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: ${{ matrix.rust }}
26+
profile: minimal
27+
override: true
28+
29+
- name: Build datafrog
30+
run: cargo build
31+
32+
- name: Execute tests
33+
run: cargo test
34+
35+
- name: Check examples
36+
run: cargo check --examples

0 commit comments

Comments
 (0)