Skip to content

Commit

Permalink
Replace TravisCI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
darekkay committed Nov 7, 2020
1 parent bcd57a1 commit e392fb4
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 15 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Continuous Integration

on:
push:
branches:
- master
- main
- develop
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
name: node-${{ matrix.node }}
strategy:
matrix:
node: [ 12, 14 ]
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v2

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

- name: Setup yarn cache
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: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: yarn install --pure-lockfile --prefer-offline

- name: Lint
run: yarn lint

- name: Test
run: yarn test
if: ${{ success() || failure() }}
14 changes: 0 additions & 14 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,7 +1,7 @@
# A11y Contrast

![npm](https://img.shields.io/npm/v/a11y-contrast?style=flat-square)
[![Travis](https://img.shields.io/travis/com/darekkay/a11y-contrast?style=flat-square)](https://travis-ci.com/darekkay/a11y-contrast)
[![Build](https://img.shields.io/github/workflow/status/darekkay/a11y-contrast/Continuous%20Integration/master?style=flat-square)](https://github.com/darekkay/a11y-contrast/actions)
[![license](https://img.shields.io/badge/license-MIT-green?style=flat-square)](https://github.com/darekkay/a11y-contrast/blob/master/LICENSE)

A CLI utility to calculate/verify accessible [magic numbers](https://designsystem.digital.gov/design-tokens/color/overview/#magic-number) for a color palette. Read [my blog post](https://darekkay.com/blog/accessible-color-palette/) for some more information.
Expand Down

0 comments on commit e392fb4

Please sign in to comment.