Skip to content

Commit bcf15b9

Browse files
committed
Move CI to GitHub Actions
1 parent 0cf93bb commit bcf15b9

File tree

2 files changed

+46
-15
lines changed

2 files changed

+46
-15
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run CI
2+
on:
3+
push:
4+
branches: ["master"]
5+
pull_request:
6+
branches: ["**"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
env:
12+
RUST_BACKTRACE: 1
13+
SHELL: /bin/bash
14+
15+
jobs:
16+
ci:
17+
name: Run CI
18+
runs-on: ubuntu-20.04
19+
20+
strategy:
21+
matrix:
22+
rust: [1.36.0, nightly, beta, stable]
23+
24+
steps:
25+
- uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 2
28+
- name: Setup Rust
29+
uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: ${{ matrix.rust }}
32+
default: true
33+
override: true
34+
- name: Build
35+
run: |
36+
cargo build --no-default-features
37+
cargo build
38+
- name: Tests
39+
run: cargo test --all
40+
- name: Build codegen
41+
run: |
42+
cd string-cache-codegen && cargo build && cd ..
43+
44+
if [ ${{ matrix.rust }} = nightly ]; then
45+
cd integration-tests && cargo test --features unstable && cd ..;
46+
fi

.travis.yml

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

0 commit comments

Comments
 (0)