Skip to content

Commit ac580b0

Browse files
author
Kristján Oddsson
authored
GitHub CI (#69)
* ci: Add a GitHub action to act as CI * chore: add package-lock.json file * ci: Remove Travis CI
1 parent fa5c604 commit ac580b0

6 files changed

Lines changed: 22721 additions & 44 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Get sources
15+
uses: actions/checkout@v1
16+
17+
- name: Restore npm cache
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-
24+
- uses: actions/cache@v2
25+
with:
26+
path: node_modules
27+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-node-modules-
30+
- name: Use Node.js 14
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: '14'
34+
35+
- name: Install dependencies
36+
run: npm install
37+
38+
- name: Build
39+
run: npm run build
40+
41+
- name: Test
42+
run: npm run test
43+
env:
44+
CI: true

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
alt="tag:?"
2020
src="https://img.shields.io/github/tag/chaijs/deep-eql.svg?style=flat-square"
2121
/>
22-
</a><a href="https://travis-ci.org/chaijs/deep-eql">
22+
</a><a href="https://github.com/chaijs/deep-eql/actions">
2323
<img
2424
alt="build:?"
25-
src="https://img.shields.io/travis/chaijs/deep-eql/master.svg?style=flat-square"
25+
src="https://github.com/chaijs/deep-eql/workflows/Build/badge.svg"
2626
/>
2727
</a><a href="https://coveralls.io/r/chaijs/deep-eql">
2828
<img

karma.conf.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,17 @@ module.exports = function configureKarma(config) {
7171
});
7272

7373
if (process.env.SAUCE_ACCESS_KEY && process.env.SAUCE_USERNAME) {
74-
var branch = process.env.TRAVIS_BRANCH || 'local';
74+
var branch = 'local';
7575
var build = 'localbuild';
76-
if (process.env.TRAVIS_JOB_NUMBER) {
77-
build = 'travis@' + process.env.TRAVIS_JOB_NUMBER;
78-
}
7976
config.reporters.push('saucelabs');
8077
config.set({
8178
customLaunchers: sauceLabsBrowsers,
8279
browsers: localBrowsers.concat(Object.keys(sauceLabsBrowsers)),
8380
sauceLabs: {
8481
testName: packageJson.name,
85-
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER || new Date().getTime(),
82+
tunnelIdentifier: new Date().getTime(),
8683
recordVideo: true,
87-
startConnect: ('TRAVIS' in process.env) === false,
84+
startConnect: true,
8885
tags: [
8986
'typeDetect_' + packageJson.version,
9087
process.env.SAUCE_USERNAME + '@' + branch,

0 commit comments

Comments
 (0)