Skip to content

Commit

Permalink
Switch from TravisCI to Github Actions
Browse files Browse the repository at this point in the history
This doesn't have full feature parity with Travis in that I'm only
testing the latest stable Rust version. I should *probably* get a bit
more comprehensive in my testing, like the examples give:
https://github.com/actions-rs/example/

However, it's generally fine for my purposes to just tinker with this
codebase when I feel like, and not make substantial efforts to do
anything fancy or bleeding edge.
  • Loading branch information
DavidCain committed Dec 30, 2021
1 parent d68cf2c commit dc6162b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: ci

on:
push:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Check formatting
run: cargo fmt -- --check
- name: Run tests
run: cargo test --verbose
17 changes: 0 additions & 17 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://api.travis-ci.com/DavidCain/stay-the-course.svg?branch=master)](https://travis-ci.com/DavidCain/stay-the-course/)
[![Build Status](https://github.com/DavidCain/stay-the-course/actions/workflows/ci.yml/badge.svg)](https://github.com/DavidCain/stay-the-course/actions)


_This tool is a work in progress, and a first project to learn Rust._
Expand Down

0 comments on commit dc6162b

Please sign in to comment.