Skip to content

Commit d1b8069

Browse files
committed
ci: use Github Actions over TravisCI
1 parent b2322b8 commit d1b8069

5 files changed

Lines changed: 2779 additions & 213 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ jobs:
4242
with:
4343
directory: ./coverage/
4444
fail_ci_if_error: true
45+
path_to_write_report: ./coverage/codecov_report.txt

.travis.yml

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

karma.conf.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = function (config) {
1313

1414
// list of files / patterns to load in the browser
1515
files: [
16+
'node_modules/whatwg-fetch/dist/fetch.umd.js',
1617
'node_modules/fetch-mock/dist/es5/client-bundle.js',
1718
'node_modules/should/should.js',
1819
{
@@ -40,7 +41,10 @@ module.exports = function (config) {
4041
reports: {
4142
html: {directory: 'coverage'},
4243
'text-summary': '',
43-
json: '',
44+
lcovonly: '',
45+
},
46+
bundlerOptions: {
47+
transforms: [require('karma-typescript-es6-transform')()],
4448
},
4549
},
4650

@@ -125,12 +129,6 @@ module.exports = function (config) {
125129
browserName: 'internet explorer',
126130
base: 'SauceLabs',
127131
},
128-
SL_InternetExplorer_10: {
129-
version: '10.0',
130-
platform: 'Windows 7',
131-
browserName: 'internet explorer',
132-
base: 'SauceLabs',
133-
},
134132
}
135133
const edge = {
136134
SL_Edge_Latest: {
@@ -172,7 +170,7 @@ module.exports = function (config) {
172170

173171
// Override config for CI.
174172
config.set({
175-
reporters: ['progress', 'saucelabs'],
173+
reporters: ['progress', 'saucelabs', 'karma-typescript'],
176174
sauceLabs: {
177175
build: process.env.GITHUB_SHA,
178176
connectOptions: {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
"karma-chrome-launcher": "3.1.0",
3232
"karma-cli": "2.0.0",
3333
"karma-mocha": "2.0.1",
34-
"karma-sauce-launcher": "4.1.4",
34+
"karma-sauce-launcher": "4.3.6",
3535
"karma-typescript": "5.5.1",
36+
"karma-typescript-es6-transform": "5.5.1",
3637
"lint-staged": "11.0.0",
3738
"mocha": "8.0.1",
3839
"npm-run-all": "4.1.5",

0 commit comments

Comments
 (0)