Skip to content

Commit 2e9c581

Browse files
authored
Merge pull request atom#88 from aminya/github-actions
GitHub Actions
2 parents 16e353d + 5b9af24 commit 2e9c581

File tree

4 files changed

+58
-59
lines changed

4 files changed

+58
-59
lines changed

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: ci
2+
on:
3+
- pull_request
4+
- push
5+
6+
jobs:
7+
Test:
8+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os:
14+
- ubuntu-latest
15+
- macos-latest
16+
- windows-latest
17+
node_version:
18+
- 10
19+
- 12
20+
- 14
21+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
with:
26+
submodules: true
27+
- name: Cache
28+
uses: actions/cache@v2
29+
with:
30+
path: |
31+
'node_modules'
32+
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('package.json') }}
33+
34+
- name: Setup node
35+
uses: actions/setup-node@v2-beta
36+
with:
37+
node-version: ${{ matrix.node_version }}
38+
39+
- name: Install dependencies
40+
run: npm install
41+
42+
- name: Lint
43+
run: npm run standard
44+
45+
- name: Run tests
46+
run: |
47+
npm run test:node
48+
npm run test:native
49+
50+
Skip:
51+
if: contains(github.event.head_commit.message, '[skip ci]')
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Skip CI 🚫
55+
run: echo skip ci

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

appveyor.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
image: Visual Studio 2015
2-
3-
environment:
4-
matrix:
5-
- nodejs_version: "8"
6-
- nodejs_version: "12.14.1"
7-
8-
platform:
9-
- x86
10-
- x64
11-
12-
install:
13-
- ps: Install-Product node $env:nodejs_version
14-
- git submodule update --init
15-
- node --version
16-
- npm --version
17-
- npm install
18-
19-
test_script:
20-
- npm run standard
21-
- npm run test:node
22-
1+
# empty appveyor
232
build: off
243

254
branches:
265
only:
27-
- master
6+
- non-existing

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build:node": "node-gyp rebuild",
99
"build:browser": "script/build-browser-version.sh",
1010
"build": "npm run build:node && npm run build:browser",
11-
"test:native": "script/test-native.js",
11+
"test:native": "node ./script/test-native.js",
1212
"test:node": "mocha test/js/*.js",
1313
"test:browser": "SUPERSTRING_USE_BROWSER_VERSION=1 mocha test/js/*.js",
1414
"test": "npm run test:node && npm run test:browser",

0 commit comments

Comments
 (0)