Skip to content

Commit

Permalink
Port from Travis to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Oct 30, 2019
1 parent e58bc4c commit 2400e2e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on: [push, pull_request]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Update rustup
run: rustup self update
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install nightly -c rust-docs
rustup default nightly
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.4/mdbook-v0.3.4-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "##[add-path]$(pwd)/bin"
- name: Report versions
run: |
rustup --version
rustc -Vv
mdbook --version
- name: Run tests
run: mdbook test
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit 2400e2e

Please sign in to comment.