Skip to content

Commit

Permalink
Merge 653ae80 into 7407c25
Browse files Browse the repository at this point in the history
  • Loading branch information
venkata-ramana-d2l committed Nov 28, 2023
2 parents 7407c25 + 653ae80 commit 6ac47cf
Show file tree
Hide file tree
Showing 10 changed files with 11,521 additions and 42 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI
on: pull_request
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: Brightspace/third-party-actions@actions/checkout
- name: Setup Node
uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
- name: Lint and Test
run: npm run test
- name: Build Sample
run: npm run build-sample
- name: Report coverage
uses: coverallsapp/github-action@v2

30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: Brightspace/third-party-actions@actions/checkout
with:
persist-credentials: false
- name: Setup Node
uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version-file: .nvmrc
- name: Lint and Test
run: npm run test
- name: Report coverage
uses: coverallsapp/github-action@v2
- name: Semantic Release
uses: BrightspaceUI/actions/semantic-release@master
with:
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }}
NPM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

9 changes: 6 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
var isDev = process.env.NODE_ENV === 'development';

const puppeteer = require('puppeteer');
process.env.CHROME_BIN = puppeteer.executablePath();

var babelify = ['babelify', {
plugins: ['babel-plugin-rewire']
}];
Expand All @@ -19,15 +22,15 @@ module.exports = function(config) {
browserify: {
debug: isDev,
extensions: ['.js'],
transform: isDev ? [babelify] : [babelify, istanbul]
transform: isDev ? [babelify] : [babelify, istanbul],
plugin: ['esmify']
},
// There's a pre-test stall on Travis builds that can cause Karma to
// fail with the default timeout of 10s. I'm not sure what's causing
// the stall, but this mitigates it for now.
browserNoActivityTimeout: 30000,
browsers: ['PhantomJS'],
browsers: ['ChromeHeadless'],
files: [
'node_modules/phantomjs-polyfill/bind-polyfill.js',
'./src/**/__tests__/**/*.js'
],
frameworks: ['browserify', 'jasmine'],
Expand Down

0 comments on commit 6ac47cf

Please sign in to comment.