Skip to content

Commit

Permalink
Merge pull request #648 from bigcommerce/bookernath-patch-1
Browse files Browse the repository at this point in the history
Move tests to GitHub Actions
  • Loading branch information
bookernath authored Sep 29, 2020
2 parents 4c4adc9 + ad50756 commit 4027162
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 35 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/pull_request_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Run Tests

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

jobs:
build:
strategy:
matrix:
node: [10.x, 12.x]
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']

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

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

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node }}

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm i

- name: Run tests
run: npm test
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

16 changes: 0 additions & 16 deletions appveyor.yml

This file was deleted.

0 comments on commit 4027162

Please sign in to comment.