Skip to content

Commit

Permalink
Replace Travis CI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and simeg committed Dec 15, 2020
1 parent 6d68be5 commit cc0e84d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
push:
pull_request:
schedule:
# Monthly, chosen randomly to avoid peak times
- cron: '5 15 14 * *'

env:
FORCE_COLOR: 1

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up node
uses: actions/setup-node@v2-beta
with:
node-version: '13'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: |
make deps
- name: Test
run: |
make ci
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MARKDOWNLINT = $(shell command -v ./node_modules/.bin/markdownlint 2> /dev/null)
YARN = $(shell command -v yarn 2> /dev/null)


# This is run on Travis to verify linting is OK and that the guide builds
# This is run on CI to verify linting is OK and that the guide builds
ci: lint
$(GITBOOK) install && $(GITBOOK) build

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| branch | status |
| ------ | ------ |
| `main` | [![main branch](https://travis-ci.org/sb2nov/mac-setup.svg?branch=main)](https://travis-ci.org/sb2nov/mac-setup) |
| `main` | [![main branch](https://github.com/sb2nov/mac-setup/workflows/Test/badge.svg)](https://github.com/sb2nov/mac-setup/actions) |
| `health-check` | [![health-check branch](https://img.shields.io/travis/sb2nov/mac-setup/health-check.svg?label=links)](https://travis-ci.org/sb2nov/mac-setup) |

This guide covers the basics of setting up a development environment on a new
Expand Down

0 comments on commit cc0e84d

Please sign in to comment.