Skip to content

Commit

Permalink
update chrome addon configuration (#135)
Browse files Browse the repository at this point in the history
* update chrome addon configuration

* move to gh actions for igniteui-angularjs

* fix workflow paths

* Use test single run

* try using ChromeHeadless

* set custom launchers to chrome headless

* update karma

* try enabling protractor tests

* remove instrument command to see protractor tests

* try adding --no-sandbox param for protractor

* Remove protractor tests from the run

* Apply subdir to store the coverage results in coverage
  • Loading branch information
dkamburov authored Apr 29, 2021
1 parent 7ef9950 commit e2f6090
Show file tree
Hide file tree
Showing 7 changed files with 2,792 additions and 4,737 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run hint
- run: npm run test-single

- name: Publish to coveralls.io
if: github.repository == 'IgniteUI/igniteui-angularjs' && matrix.node-version == '14.x'
uses: coverallsapp/github-action@v1.1.2
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ github.token }}
40 changes: 40 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Npm.js deploy

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo ${VERSION}

- run: echo "NG_CLI_ANALYTICS=false" >> $GITHUB_ENV
- run: echo "NODE_OPTIONS='--max_old_space_size=4096'" >> $GITHUB_ENV
- run: npm ci

- run: npm run build

# define npm tag
- run: if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
- run: echo ${NPM_TAG}

# copy readme
- run: cp ../../README.md README.md
working-directory: dist/npm

# create version and publish it to npmjs
- run: npm version ${VERSION} --no-git-tag-version --save --verbose
working-directory: dist/npm

- run: npm publish --tag ${NPM_TAG}
working-directory: dist/npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
50 changes: 24 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
sudo: required
dist: trusty
dist: xenial
language: node_js
node_js:
- '8'
- 'lts/*'
addons:
chrome: stable
services:
- xvfb
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
- export DISPLAY=:99.0
- sleep 3
script:
- npm run start
- sleep 3
Expand All @@ -22,20 +20,20 @@ script:
- npm run cover-combined
- cat ./coverage/final/lcov.info | coveralls

before_deploy:
# package and navigate to dist
- grunt build
- cd dist/npm
# update package version
- npm version "$TRAVIS_TAG" --no-git-tag-version --save
# before_deploy:
# # package and navigate to dist
# - grunt build
# - cd dist/npm
# # update package version
# - npm version "$TRAVIS_TAG" --no-git-tag-version --save

deploy:
provider: npm
skip_cleanup: true
email: igniteui@infragistics.com
api_key:
secure: awkGIEJWnAsXTag3RTFVpEdkx8WSspSqbT6rV3S0VlaIUN1lcMSBIrdNVzyTkKGq4s6SbY8omdHzfX/6uGDMM6+HMI7kGQeYHH0M73dzlVNj0TJ1xHKJ6zuqDXsWWatIRFYe7EkbX3xl9d0b0mfvHMIaLXH1CwxiLVF60CCFfLU=
on:
tags: true
repo: IgniteUI/igniteui-angularjs
branch: master
# deploy:
# provider: npm
# skip_cleanup: true
# email: igniteui@infragistics.com
# api_key:
# secure: awkGIEJWnAsXTag3RTFVpEdkx8WSspSqbT6rV3S0VlaIUN1lcMSBIrdNVzyTkKGq4s6SbY8omdHzfX/6uGDMM6+HMI7kGQeYHH0M73dzlVNj0TJ1xHKJ6zuqDXsWWatIRFYe7EkbX3xl9d0b0mfvHMIaLXH1CwxiLVF60CCFfLU=
# on:
# tags: true
# repo: IgniteUI/igniteui-angularjs
# branch: master
Loading

0 comments on commit e2f6090

Please # to comment.