File tree Expand file tree Collapse file tree 7 files changed +2792
-4737
lines changed Expand file tree Collapse file tree 7 files changed +2792
-4737
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name : Node.js CI
5
+
6
+ on :
7
+ push :
8
+ branches : [ master ]
9
+ pull_request :
10
+ branches : [ master ]
11
+
12
+ jobs :
13
+ build :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ node-version : [12.x, 14.x]
20
+
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - name : Use Node.js ${{ matrix.node-version }}
24
+ uses : actions/setup-node@v1
25
+ with :
26
+ node-version : ${{ matrix.node-version }}
27
+ - run : npm ci
28
+ - run : npm run hint
29
+ - run : npm run test-single
30
+
31
+ - name : Publish to coveralls.io
32
+ if : github.repository == 'IgniteUI/igniteui-angularjs' && matrix.node-version == '14.x'
33
+ uses : coverallsapp/github-action@v1.1.2
34
+ with :
35
+ path-to-lcov : ./coverage/lcov.info
36
+ github-token : ${{ github.token }}
Original file line number Diff line number Diff line change
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 : npm run build
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/npm
32
+
33
+ # create version and publish it to npmjs
34
+ - run : npm version ${VERSION} --no-git-tag-version --save --verbose
35
+ working-directory : dist/npm
36
+
37
+ - run : npm publish --tag ${NPM_TAG}
38
+ working-directory : dist/npm
39
+ env :
40
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 1
1
sudo : required
2
- dist : trusty
2
+ dist : xenial
3
3
language : node_js
4
4
node_js :
5
- - ' 8'
5
+ - ' lts/*'
6
+ addons :
7
+ chrome : stable
8
+ services :
9
+ - xvfb
6
10
before_install :
7
- - export CHROME_BIN=chromium-browser
8
- - export DISPLAY=:99.0
9
- - sh -e /etc/init.d/xvfb start
10
- - sleep 3
11
- - sudo apt-get update
12
- - sudo apt-get install -y libappindicator1 fonts-liberation
13
- - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
14
- - sudo dpkg -i google-chrome*.deb
11
+ - export DISPLAY=:99.0
12
+ - sleep 3
15
13
script :
16
14
- npm run start
17
15
- sleep 3
@@ -22,20 +20,20 @@ script:
22
20
- npm run cover-combined
23
21
- cat ./coverage/final/lcov.info | coveralls
24
22
25
- before_deploy :
26
- # package and navigate to dist
27
- - grunt build
28
- - cd dist/npm
29
- # update package version
30
- - npm version "$TRAVIS_TAG" --no-git-tag-version --save
23
+ # before_deploy:
24
+ # # package and navigate to dist
25
+ # - grunt build
26
+ # - cd dist/npm
27
+ # # update package version
28
+ # - npm version "$TRAVIS_TAG" --no-git-tag-version --save
31
29
32
- deploy :
33
- provider : npm
34
- skip_cleanup : true
35
- email : igniteui@infragistics.com
36
- api_key :
37
- secure : awkGIEJWnAsXTag3RTFVpEdkx8WSspSqbT6rV3S0VlaIUN1lcMSBIrdNVzyTkKGq4s6SbY8omdHzfX/6uGDMM6+HMI7kGQeYHH0M73dzlVNj0TJ1xHKJ6zuqDXsWWatIRFYe7EkbX3xl9d0b0mfvHMIaLXH1CwxiLVF60CCFfLU=
38
- on :
39
- tags : true
40
- repo : IgniteUI/igniteui-angularjs
41
- branch : master
30
+ # deploy:
31
+ # provider: npm
32
+ # skip_cleanup: true
33
+ # email: igniteui@infragistics.com
34
+ # api_key:
35
+ # secure: awkGIEJWnAsXTag3RTFVpEdkx8WSspSqbT6rV3S0VlaIUN1lcMSBIrdNVzyTkKGq4s6SbY8omdHzfX/6uGDMM6+HMI7kGQeYHH0M73dzlVNj0TJ1xHKJ6zuqDXsWWatIRFYe7EkbX3xl9d0b0mfvHMIaLXH1CwxiLVF60CCFfLU=
36
+ # on:
37
+ # tags: true
38
+ # repo: IgniteUI/igniteui-angularjs
39
+ # branch: master
You can’t perform that action at this time.
0 commit comments