Skip to content

Commit

Permalink
ci: use Github Actions over TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
citizensas committed Jun 16, 2021
1 parent b2322b8 commit d1b8069
Show file tree
Hide file tree
Showing 5 changed files with 2,779 additions and 213 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ jobs:
with:
directory: ./coverage/
fail_ci_if_error: true
path_to_write_report: ./coverage/codecov_report.txt
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

14 changes: 6 additions & 8 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = function (config) {

// list of files / patterns to load in the browser
files: [
'node_modules/whatwg-fetch/dist/fetch.umd.js',
'node_modules/fetch-mock/dist/es5/client-bundle.js',
'node_modules/should/should.js',
{
Expand Down Expand Up @@ -40,7 +41,10 @@ module.exports = function (config) {
reports: {
html: {directory: 'coverage'},
'text-summary': '',
json: '',
lcovonly: '',
},
bundlerOptions: {
transforms: [require('karma-typescript-es6-transform')()],
},
},

Expand Down Expand Up @@ -125,12 +129,6 @@ module.exports = function (config) {
browserName: 'internet explorer',
base: 'SauceLabs',
},
SL_InternetExplorer_10: {
version: '10.0',
platform: 'Windows 7',
browserName: 'internet explorer',
base: 'SauceLabs',
},
}
const edge = {
SL_Edge_Latest: {
Expand Down Expand Up @@ -172,7 +170,7 @@ module.exports = function (config) {

// Override config for CI.
config.set({
reporters: ['progress', 'saucelabs'],
reporters: ['progress', 'saucelabs', 'karma-typescript'],
sauceLabs: {
build: process.env.GITHUB_SHA,
connectOptions: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
"karma-chrome-launcher": "3.1.0",
"karma-cli": "2.0.0",
"karma-mocha": "2.0.1",
"karma-sauce-launcher": "4.1.4",
"karma-sauce-launcher": "4.3.6",
"karma-typescript": "5.5.1",
"karma-typescript-es6-transform": "5.5.1",
"lint-staged": "11.0.0",
"mocha": "8.0.1",
"npm-run-all": "4.1.5",
Expand Down
Loading

0 comments on commit d1b8069

Please sign in to comment.