Skip to content

Commit 71412e4

Browse files
authored
Merge pull request #336 from IgniteUI/sstoychev/github-actions
Switching to GitHub Actions, updating to Angular 12
2 parents 600d073 + fc5ec70 commit 71412e4

File tree

13 files changed

+5659
-6108
lines changed

13 files changed

+5659
-6108
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [10.x, 12.x, 14.x]
19+
node-version: [12.x, 14.x]
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -28,3 +28,10 @@ jobs:
2828
- run: npm run lint
2929
- run: npm run build --if-present
3030
- run: npm run test:lib
31+
32+
- name: Publish to coveralls.io
33+
if: github.repository == 'IgniteUI/igniteui-angular-wrappers' && matrix.node-version == '14.x'
34+
uses: coverallsapp/[email protected]
35+
with:
36+
path-to-lcov: ./coverage/lcov.info
37+
github-token: ${{ github.token }}

.github/workflows/npm-publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Npm.js deploy
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
17+
- run: echo ${VERSION}
18+
19+
- run: echo "NG_CLI_ANALYTICS=false" >> $GITHUB_ENV
20+
- run: echo "NODE_OPTIONS='--max_old_space_size=4096'" >> $GITHUB_ENV
21+
- run: npm ci
22+
23+
- run: ng build igniteui-angular-wrappers --prod
24+
25+
# define npm tag
26+
- run: if [[ ${VERSION} == *"alpha"* || ${VERSION} == *"beta"* || ${VERSION} == *"rc"* ]]; then echo "NPM_TAG=next"; else echo "NPM_TAG=latest"; fi >> $GITHUB_ENV
27+
- run: echo ${NPM_TAG}
28+
29+
# copy readme
30+
- run: cp ../../README.md README.md
31+
working-directory: dist/igniteui-angular-wrappers
32+
33+
# create version and publish it to npmjs
34+
- run: npm version ${VERSION} --no-git-tag-version --save --verbose
35+
working-directory: dist/igniteui-angular-wrappers
36+
37+
- run: npm publish --tag ${NPM_TAG}
38+
working-directory: dist/igniteui-angular-wrappers
39+
env:
40+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ script:
1717
- npm run build
1818
- cat ./coverage/igniteui-angular-wrappers/lcov.info | coveralls
1919

20-
before_deploy:
20+
#before_deploy:
2121
# package and navigate to dist
22-
- ng build igniteui-angular-wrappers --prod
23-
- cd dist/igniteui-angular-wrappers
22+
#- ng build igniteui-angular-wrappers --prod
23+
#- cd dist/igniteui-angular-wrappers
2424
# update package version
25-
- npm version "$TRAVIS_TAG" --no-git-tag-version --save
25+
#- npm version "$TRAVIS_TAG" --no-git-tag-version --save
2626

27-
deploy:
28-
provider: npm
29-
skip_cleanup: true
30-
31-
api_key:
32-
secure: hGvEnVxB5T9XEea22TbvcaxlzYgPuBnzh6pfPnKxt6xrRzp3HCI3sDlH2VhcTCmszeUa0HxRzmbIvCZS8MOa1h7Y7rLLNanv4/VYu45uLsupUyXQ7YvKZEElOvYHrWdvgJbfHhbneH2xNSPr8zXMfmNgeLCKGJeHPy4d3OzuIJhNvctAsywjQImjn77drwFffRTSu9wCp4W/bAVUPe9AVR+8dpQs25haKBgdVRYIAYC7sCGanuFLlnVC5dFOlbZNdcpGQ7YU8ge1uli0yNqFcS0h7/ULD16/IcaJ55iNLcH0l0HJUQc+kIdXuwzUBaqyS+vB/5isxCc1gNnjn724w1Sar2VOxyYSNRxZZ8+5LL2c/sGlu+1MRaWehD+IIjtzgOmMVAd7fSMSwACvA3HnkRkFboZMWdmxkvNWHVtScXn6etXrS1pO+aMLEj388TWf4fMz4o3yQae0ax/RBu46UG1SFvo3jiftgBoygZoMqeItDzWcIp38XMx1CnNTb6s8ty4lMkiT7Gxa6tddQmkZhmK58IXxES/bnkFDkebxVxDHSWuUhM8qBy0FBVabDYrtzMskCa6ullTNi7eaT0oXlfZ0nAgQtR/WfXkMPFBb/0ryyh1glAc4XzjsSowDMGEkdn+Z1NHcRtGEoQ9KK7MgwQGdgllzjYEZhFQImyzxqTg=
33-
on:
34-
tags: true
35-
repo: IgniteUI/igniteui-angular-wrappers
36-
branch: master
27+
#deploy:
28+
# provider: npm
29+
# skip_cleanup: true
30+
31+
# api_key:
32+
# secure: hGvEnVxB5T9XEea22TbvcaxlzYgPuBnzh6pfPnKxt6xrRzp3HCI3sDlH2VhcTCmszeUa0HxRzmbIvCZS8MOa1h7Y7rLLNanv4/VYu45uLsupUyXQ7YvKZEElOvYHrWdvgJbfHhbneH2xNSPr8zXMfmNgeLCKGJeHPy4d3OzuIJhNvctAsywjQImjn77drwFffRTSu9wCp4W/bAVUPe9AVR+8dpQs25haKBgdVRYIAYC7sCGanuFLlnVC5dFOlbZNdcpGQ7YU8ge1uli0yNqFcS0h7/ULD16/IcaJ55iNLcH0l0HJUQc+kIdXuwzUBaqyS+vB/5isxCc1gNnjn724w1Sar2VOxyYSNRxZZ8+5LL2c/sGlu+1MRaWehD+IIjtzgOmMVAd7fSMSwACvA3HnkRkFboZMWdmxkvNWHVtScXn6etXrS1pO+aMLEj388TWf4fMz4o3yQae0ax/RBu46UG1SFvo3jiftgBoygZoMqeItDzWcIp38XMx1CnNTb6s8ty4lMkiT7Gxa6tddQmkZhmK58IXxES/bnkFDkebxVxDHSWuUhM8qBy0FBVabDYrtzMskCa6ullTNi7eaT0oXlfZ0nAgQtR/WfXkMPFBb/0ryyh1glAc4XzjsSowDMGEkdn+Z1NHcRtGEoQ9KK7MgwQGdgllzjYEZhFQImyzxqTg=
33+
# on:
34+
# tags: true
35+
# repo: IgniteUI/igniteui-angular-wrappers
36+
# branch: master

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ignite UI wrappers for Angular
22

3-
[![Build Status](https://travis-ci.org/IgniteUI/igniteui-angular-wrappers.svg?branch=master)](https://travis-ci.org/IgniteUI/igniteui-angular-wrappers)
3+
[![Node.js CI](https://github.com/IgniteUI/igniteui-angular-wrappers/actions/workflows/node.js.yml/badge.svg)](https://github.com/IgniteUI/igniteui-angular-wrappers/actions/workflows/node.js.yml)
44
[![Coverage Status](https://coveralls.io/repos/github/IgniteUI/igniteui-angular-wrappers/badge.svg?branch=master)](https://coveralls.io/github/IgniteUI/igniteui-angular-wrappers?branch=master)
55
[![npm version](https://badge.fury.io/js/igniteui-angular-wrappers.svg)](https://badge.fury.io/js/igniteui-angular-wrappers)
66

angular.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
2221
"assets": [
2322
"src/favicon.ico",
2423
"src/assets"
2524
],
2625
"styles": [
2726
"src/styles.css"
2827
],
29-
"scripts": []
28+
"scripts": [],
29+
"vendorChunk": true,
30+
"extractLicenses": true,
31+
"buildOptimizer": false,
32+
"sourceMap": true,
33+
"optimization": false,
34+
"namedChunks": false
3035
},
3136
"configurations": {
3237
"production": {
@@ -39,8 +44,6 @@
3944
"optimization": true,
4045
"outputHashing": "all",
4146
"sourceMap": false,
42-
"namedChunks": false,
43-
"extractLicenses": true,
4447
"vendorChunk": false,
4548
"buildOptimizer": true,
4649
"budgets": [

0 commit comments

Comments
 (0)