Skip to content

Commit d486b57

Browse files
committed
Switch from Travis to GitHub Actions
1 parent fea5cb9 commit d486b57

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on: [push, pull_request]
3+
env:
4+
RUST_BACKTRACE: 1
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Formatting
11+
run: |
12+
# Install extra rustup components
13+
rustup component add rustfmt
14+
cargo fmt --all -- --check
15+
- name: Correct Nightly Version
16+
# Ensure everything is run and tested with the same nightly version
17+
run: ci/check-nightly-version.sh
18+
- name: Test
19+
run: |
20+
set -euo pipefail
21+
IFS=$'\n\t'
22+
# Check if the code is good
23+
cargo build --all --locked
24+
cargo test --all --locked

.travis.yml

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

ci/run.sh

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

0 commit comments

Comments
 (0)