Skip to content

Commit

Permalink
Add .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
- Remove `.travis.yml`
  • Loading branch information
cruessler committed Jul 26, 2020
1 parent b5b30ab commit 62cb558
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on: push

name: Build and test

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
rust: [ stable ]

name: ${{ matrix.os }}, Rust ${{ matrix.rust }}
steps:
- uses: actions/checkout@v2

- name: Install Rust (rustup)
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
rustup component add rustfmt
rustc --version
shell: bash

- name: Build (release)
run: cargo build --verbose --release

- name: Check formatting
run: cargo fmt -- --check

- name: Test
run: cargo test
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/cruessler/git-tree.svg?branch=master)](https://travis-ci.org/cruessler/git-tree)
[![Build Status](https://github.com/cruessler/git-tree/workflows/build/badge.svg)](https://github.com/cruessler/git-tree/actions?query=workflow%3Abuild)

# git-tree

Expand Down

0 comments on commit 62cb558

Please sign in to comment.