-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update chrome addon configuration (#135)
* 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
Showing
7 changed files
with
2,792 additions
and
4,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.