-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #336 from IgniteUI/sstoychev/github-actions
Switching to GitHub Actions, updating to Angular 12
- Loading branch information
Showing
13 changed files
with
5,659 additions
and
6,108 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -28,3 +28,10 @@ jobs: | |
- run: npm run lint | ||
- run: npm run build --if-present | ||
- run: npm run test:lib | ||
|
||
- name: Publish to coveralls.io | ||
if: github.repository == 'IgniteUI/igniteui-angular-wrappers' && matrix.node-version == '14.x' | ||
uses: coverallsapp/[email protected] | ||
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: ng build igniteui-angular-wrappers --prod | ||
|
||
# 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/igniteui-angular-wrappers | ||
|
||
# create version and publish it to npmjs | ||
- run: npm version ${VERSION} --no-git-tag-version --save --verbose | ||
working-directory: dist/igniteui-angular-wrappers | ||
|
||
- run: npm publish --tag ${NPM_TAG} | ||
working-directory: dist/igniteui-angular-wrappers | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,20 +17,20 @@ script: | |
- npm run build | ||
- cat ./coverage/igniteui-angular-wrappers/lcov.info | coveralls | ||
|
||
before_deploy: | ||
#before_deploy: | ||
# package and navigate to dist | ||
- ng build igniteui-angular-wrappers --prod | ||
- cd dist/igniteui-angular-wrappers | ||
#- ng build igniteui-angular-wrappers --prod | ||
#- cd dist/igniteui-angular-wrappers | ||
# update package version | ||
- npm version "$TRAVIS_TAG" --no-git-tag-version --save | ||
#- npm version "$TRAVIS_TAG" --no-git-tag-version --save | ||
|
||
deploy: | ||
provider: npm | ||
skip_cleanup: true | ||
email: [email protected] | ||
api_key: | ||
secure: hGvEnVxB5T9XEea22TbvcaxlzYgPuBnzh6pfPnKxt6xrRzp3HCI3sDlH2VhcTCmszeUa0HxRzmbIvCZS8MOa1h7Y7rLLNanv4/VYu45uLsupUyXQ7YvKZEElOvYHrWdvgJbfHhbneH2xNSPr8zXMfmNgeLCKGJeHPy4d3OzuIJhNvctAsywjQImjn77drwFffRTSu9wCp4W/bAVUPe9AVR+8dpQs25haKBgdVRYIAYC7sCGanuFLlnVC5dFOlbZNdcpGQ7YU8ge1uli0yNqFcS0h7/ULD16/IcaJ55iNLcH0l0HJUQc+kIdXuwzUBaqyS+vB/5isxCc1gNnjn724w1Sar2VOxyYSNRxZZ8+5LL2c/sGlu+1MRaWehD+IIjtzgOmMVAd7fSMSwACvA3HnkRkFboZMWdmxkvNWHVtScXn6etXrS1pO+aMLEj388TWf4fMz4o3yQae0ax/RBu46UG1SFvo3jiftgBoygZoMqeItDzWcIp38XMx1CnNTb6s8ty4lMkiT7Gxa6tddQmkZhmK58IXxES/bnkFDkebxVxDHSWuUhM8qBy0FBVabDYrtzMskCa6ullTNi7eaT0oXlfZ0nAgQtR/WfXkMPFBb/0ryyh1glAc4XzjsSowDMGEkdn+Z1NHcRtGEoQ9KK7MgwQGdgllzjYEZhFQImyzxqTg= | ||
on: | ||
tags: true | ||
repo: IgniteUI/igniteui-angular-wrappers | ||
branch: master | ||
#deploy: | ||
# provider: npm | ||
# skip_cleanup: true | ||
# email: [email protected] | ||
# api_key: | ||
# secure: hGvEnVxB5T9XEea22TbvcaxlzYgPuBnzh6pfPnKxt6xrRzp3HCI3sDlH2VhcTCmszeUa0HxRzmbIvCZS8MOa1h7Y7rLLNanv4/VYu45uLsupUyXQ7YvKZEElOvYHrWdvgJbfHhbneH2xNSPr8zXMfmNgeLCKGJeHPy4d3OzuIJhNvctAsywjQImjn77drwFffRTSu9wCp4W/bAVUPe9AVR+8dpQs25haKBgdVRYIAYC7sCGanuFLlnVC5dFOlbZNdcpGQ7YU8ge1uli0yNqFcS0h7/ULD16/IcaJ55iNLcH0l0HJUQc+kIdXuwzUBaqyS+vB/5isxCc1gNnjn724w1Sar2VOxyYSNRxZZ8+5LL2c/sGlu+1MRaWehD+IIjtzgOmMVAd7fSMSwACvA3HnkRkFboZMWdmxkvNWHVtScXn6etXrS1pO+aMLEj388TWf4fMz4o3yQae0ax/RBu46UG1SFvo3jiftgBoygZoMqeItDzWcIp38XMx1CnNTb6s8ty4lMkiT7Gxa6tddQmkZhmK58IXxES/bnkFDkebxVxDHSWuUhM8qBy0FBVabDYrtzMskCa6ullTNi7eaT0oXlfZ0nAgQtR/WfXkMPFBb/0ryyh1glAc4XzjsSowDMGEkdn+Z1NHcRtGEoQ9KK7MgwQGdgllzjYEZhFQImyzxqTg= | ||
# on: | ||
# tags: true | ||
# repo: IgniteUI/igniteui-angular-wrappers | ||
# branch: master |
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
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.