Skip to content

Commit

Permalink
Move tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 25, 2021
1 parent 98b61ba commit 0c68063
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 34 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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
windows:
runs-on: windows-latest
name: Windows Quick
env:
YARN_GPG: "no"
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install Node.js LTS
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run unit tests
run: npx jest
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

22 changes: 0 additions & 22 deletions appveyor.yml

This file was deleted.

0 comments on commit 0c68063

Please sign in to comment.