Skip to content

Commit

Permalink
Merge pull request #1961 from swimlane/test-deploy-gh-action
Browse files Browse the repository at this point in the history
Test deploy gh action
  • Loading branch information
haeminn authored Jan 5, 2021
2 parents 48fd4c0 + 15d05e6 commit fd2f680
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 31 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build, Test, and Deploy

on: [push]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Use Node.js 12.x
uses: actions/checkout@v1
with:
node-version: 12.x

- name: Install
run: |
npm ci
env:
CI: true

- name: Build
run: |
npm run build
env:
CI: true

- name: Test
run: |
npm run ci
env:
CI: true

- name: Prepare and deploy
run: |
npm run deploy-docs -- --name="Swimlane" --email="[email protected]" --no-silent
if: ${{ github.ref == 'refs/heads/master' }}
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Join the chat at https://gitter.im/swimlane/ngx-datatable](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/swimlane/ngx-datatable?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Code Climate](https://codeclimate.com/github/swimlane/ngx-datatable/badges/gpa.svg)](https://codeclimate.com/github/swimlane/ngx-datatable)
[![Build Status](https://travis-ci.org/swimlane/ngx-datatable.svg?branch=master)](https://travis-ci.org/swimlane/ngx-datatable)
[![Test Coverage](https://codeclimate.com/github/swimlane/ngx-datatable/badges/coverage.svg)](https://codeclimate.com/github/swimlane/ngx-datatable/coverage)
[![npm version](https://badge.fury.io/js/%40swimlane%2Fngx-datatable.svg)](https://badge.fury.io/js/%40swimlane%2Fngx-datatable)
[![npm downloads](https://img.shields.io/npm/dm/@swimlane/ngx-datatable.svg)](https://npmjs.org/@swimlane/ngx-datatable)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "run-p lint test:unit",
"test:unit": "ng test @swimlane/ngx-datatable --watch=false",
"test:watch": "ng test @swimlane/ngx-datatable",
"test:ci": "ng test @swimlane/ngx-datatable --watch=false --progress=false",
"test:ci": "ng test @swimlane/ngx-datatable --watch=false --progress=false --browsers=ChromeHeadlessCI",
"ci": "run-s lint prettier:ci test:ci",
"lint": "ng lint",
"e2e": "ng e2e",
Expand Down
6 changes: 6 additions & 0 deletions projects/swimlane/ngx-datatable/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox', '--disable-gpu']
}
},
singleRun: false,
restartOnFileChange: true
});
Expand Down

0 comments on commit fd2f680

Please sign in to comment.