Skip to content

Commit

Permalink
chore: use GH Actions (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Jun 15, 2021
1 parent f3ead0a commit a9ab796
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 24 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Unit tests

on:
push:
branches:
- main
- next
pull_request:
branches:
- main
- next

jobs:
test-node:
name:
# prettier-ignore
Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }} and jest v${{ matrix.jest-version }}
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
eslint-version: [6, 7]
jest-version: [25, 26, 27]
include:
# eslint@7 and jest@26 doesn't support node@8
- node-version: 8.x
eslint-version: 6
jest-version: 25
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: install with eslint v${{ matrix.eslint-version }} and jest@${{ matrix.jest-version }}
run: yarn add --dev eslint@${{ matrix.eslint-version }} jest@${{ matrix.jest-version }} --ignore-engines
- name: run tests
run: yarn test
23 changes: 0 additions & 23 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/jest-community/jest-runner-eslint.svg?branch=main)](https://travis-ci.org/jest-community/jest-runner-eslint) [![npm version](https://badge.fury.io/js/jest-runner-eslint.svg)](https://badge.fury.io/js/jest-runner-eslint)
[![Actions Status](https://github.com/jest-community/jest-runner-eslint/actions/workflows/nodejs.yml/badge.svg?branch=main)](https://github.com/jest-community/jest-runner-eslint/actions) [![npm version](https://badge.fury.io/js/jest-runner-eslint.svg)](https://badge.fury.io/js/jest-runner-eslint)

<div align="center">
<!-- replace with accurate logo e.g from https://worldvectorlogo.com/ -->
Expand Down

0 comments on commit a9ab796

Please sign in to comment.