Skip to content

Commit

Permalink
Switch to GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Dec 1, 2019
1 parent 6bcff68 commit a12fb62
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,31 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Read .nvmrc
id: nvm
run: echo "##[set-output name=node_version;]$(cat .nvmrc)"
- uses: actions/setup-node@v1
with:
node-version: "${{ steps.nvm.outputs.node_version }}"
- name: Get the Yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn install --frozen-lockfile
- name: Check formatting
run: yarn run format:check
- name: Lint the code
run: yarn run lint
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
@@ -1,6 +1,7 @@
# Make a README

[![Build Status](https://travis-ci.org/dguo/make-a-readme.svg?branch=master)](https://travis-ci.org/dguo/make-a-readme) [![Netlify Status](https://api.netlify.com/api/v1/badges/68992d1c-36d4-4a84-b177-00c1f64fbcb4/deploy-status)](https://app.netlify.com/sites/make-a-readme/deploys)
[![Netlify Status](https://api.netlify.com/api/v1/badges/68992d1c-36d4-4a84-b177-00c1f64fbcb4/deploy-status)](https://app.netlify.com/sites/make-a-readme/deploys)
[![CI status](https://github.com/dguo/make-a-readme/workflows/CI/badge.svg)](https://github.com/dguo/make-a-readme/actions?query=branch%3Amaster)

[Make a README](https://makeareadme.com) explains what a README is, what the
benefits are, and what makes for a good README. It also provides an editable
Expand Down

0 comments on commit a12fb62

Please sign in to comment.