Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

GitHub Actions #88

Merged
merged 6 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: ci
on:
- pull_request
- push

jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node_version:
- 10
- 12
- 14
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache
uses: actions/cache@v2
with:
path: |
'node_modules'
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json') }}

- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node_version }}

- name: Install dependencies
run: npm install

- name: Lint
run: npm run standard

- name: Run tests
run: |
npm run test:node
npm run test:native

Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

25 changes: 2 additions & 23 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
image: Visual Studio 2015

environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "12.14.1"

platform:
- x86
- x64

install:
- ps: Install-Product node $env:nodejs_version
- git submodule update --init
- node --version
- npm --version
- npm install

test_script:
- npm run standard
- npm run test:node

# empty appveyor
build: off

branches:
only:
- master
- non-existing
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:node": "node-gyp rebuild",
"build:browser": "script/build-browser-version.sh",
"build": "npm run build:node && npm run build:browser",
"test:native": "script/test-native.js",
"test:native": "node ./script/test-native.js",
"test:node": "mocha test/js/*.js",
"test:browser": "SUPERSTRING_USE_BROWSER_VERSION=1 mocha test/js/*.js",
"test": "npm run test:node && npm run test:browser",
Expand Down