Skip to content

Commit f91fa8d

Browse files
committedApr 18, 2023
Environment fixes
1 parent e5eadff commit f91fa8d

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed
 

‎.github/workflows/build.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: ui-scroll build
22

33
on:
4-
push:
5-
branches:
6-
- "**"
74
pull_request:
85
branches: [ master ]
96
workflow_dispatch:
@@ -16,9 +13,7 @@ on:
1613
jobs:
1714
build:
1815
runs-on: ubuntu-latest
19-
strategy:
20-
matrix:
21-
node-version: [18.x]
16+
timeout-minutes: 10
2217
steps:
2318
- name: Dispatched?
2419
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -29,10 +24,15 @@ jobs:
2924
- name: Checkout
3025
uses: actions/checkout@v3
3126

32-
- name: Use Node.js ${{ matrix.node-version }}
27+
- name: Use Node.js
3328
uses: actions/setup-node@v3
3429
with:
35-
node-version: ${{ matrix.node-version }}
30+
node-version: 18
3631

37-
- run: npm ci
38-
- run: npm test
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Run tests
36+
env:
37+
GITHUB: true
38+
run: npm test

‎.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
/src
44
/temp
55
/test
6+
/.github
67
.babelrc
78
.gitignore
89
.jshintrc
910
.npmignore
10-
.travis.yml
1111
webpack.config.js

‎README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
### UI Scroll - [AngularJS](http://angularjs.org/) directive to provide infinite scroll over a limited element buffer
22

3-
[![Build Status](https://travis-ci.org/angular-ui/ui-scroll.svg?branch=master)](https://travis-ci.org/angular-ui/ui-scroll)
4-
[![npm version](https://badge.fury.io/js/angular-ui-scroll.svg)](http://badge.fury.io/js/angular-ui-scroll)
3+
[![Build Status](https://github.com/angular-ui/ui-scroll/actions/workflows/ci.yml/badge.svg)](https://github.com/angular-ui/ui-scroll/actions/workflows/ci.yml)
4+
[![npm version](https://badge.fury.io/js/angular-ui-scroll.svg)](https://www.npmjs.com/package/angular-ui-scroll)
55
[![Bower version](https://badge.fury.io/bo/angular-ui-scroll.svg)](http://badge.fury.io/bo/angular-ui-scroll)
6-
[![Join the chat at https://gitter.im/angular-ui/ui-scroll](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/ui-scroll?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
76

87
<p dir="rtl">
98
<small>looking for next Angular version? try <a href="https://github.com/dhilt/ngx-ui-scroll">ngx-ui-scroll</a> &#9758;</small>

‎bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
"src",
2828
"temp",
2929
"test",
30+
".github",
3031
".gitignore",
3132
".jshintrc",
3233
".npmignore",
33-
".travis.yml",
3434
"Gruntfile.js",
3535
"package.json",
3636
"webpack.config.js"
3737
]
38-
}
38+
}

‎test/config/karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function (config) {
3636

3737
keepalive: ENV === 'development',
3838

39-
browsers: process.env.TRAVIS ?
39+
browsers: process.env.GITHUB ?
4040
['Firefox'] :
4141
[chrome],
4242

0 commit comments

Comments
 (0)