Skip to content

Commit

Permalink
Set up GitHub Actions for automated testing
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Fan <[email protected]>
  • Loading branch information
fanck0605 committed Aug 30, 2021
1 parent 718762f commit 0a52548
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [12.x, 14.x, 16.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- run: yarn install --frozen-lockfile
- run: npx --no-install eslint "**/*.{js,ts}"
- run: npx --no-install prettier --check "**/*.{js,ts,json,yml,md}"
- run: npx --no-install jest --ci --coverage
24 changes: 0 additions & 24 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/DocSpring/craco-less.svg?branch=master)](https://travis-ci.org/DocSpring/craco-less)
[![Test Status](https://github.com/DocSpring/craco-less/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/DocSpring/craco-less/actions/workflows/test.yml)
[![Coverage Status](https://coveralls.io/repos/github/DocSpring/craco-less/badge.svg?branch=master)](https://coveralls.io/github/DocSpring/craco-less?branch=master)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Expand Down

0 comments on commit 0a52548

Please sign in to comment.