Skip to content

Commit

Permalink
Move from Travis CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 26, 2021
1 parent 34fa5ad commit e5e3ff8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 13 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test
on:
push:
pull_request:
env:
FORCE_COLOR: 2
jobs:
full:
name: Node.js 16 Full
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run tests
run: yarn test
short:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14
- 12
- 10
- 8
- 6
name: Node.js ${{ matrix.node-version }} Quick
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
install-command: yarn --frozen-lockfile --ignore-engines
- name: Run unit tests
run: npx jest
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit e5e3ff8

Please sign in to comment.