File tree Expand file tree Collapse file tree 3 files changed +33
-15
lines changed Expand file tree Collapse file tree 3 files changed +33
-15
lines changed Original file line number Diff line number Diff line change
1
+ name : Test and Lint
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+ pull_request :
6
+ branches : [ main ]
7
+ jobs :
8
+ test_and_lint :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ with :
13
+ fetch-depth : 0
14
+ ref : main
15
+ - uses : actions/setup-node@v2
16
+ with :
17
+ node-version : ' 14'
18
+ - run : |
19
+ if [ -f "yarn.lock" ]; then
20
+ yarn install
21
+ else
22
+ npm install
23
+ fi
24
+ - run : |
25
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
26
+ git config --global user.name "github-actions[bot]"
27
+ - run : yarn test
28
+ - run : yarn lint
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ SLACK_INCOMING_HOOK : ${{ secrets.SLACK_INCOMING_HOOK }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# Uploadcare custom image loader for Next.js
2
- [ ![ Build Status] [ build-img ]] [ build-link ]
2
+ ![ Test Status] [ test-status-img ]
3
3
[ ![ NPM version] [ npm-img ]] [ npm-link ]
4
4
5
5
* [ Demo] ( #demo )
@@ -170,9 +170,7 @@ Next checks whether the image url which loader generates has the exact value whi
170
170
171
171
** Fix:** Ignore the warning for now.
172
172
173
-
174
- [ build-img ] : https://app.travis-ci.com/uploadcare/nextjs-loader.svg?branch=main
175
- [ build-link ] : https://api.travis-ci.com/uploadcare/nextjs-loader
173
+ [ test-status-img ] : https://github.com/uploadcare/nextjs-loader/actions/workflows/test-and-lint.yml/badge.svg
176
174
[ npm-img ] : https://img.shields.io/npm/v/@uploadcare/nextjs-loader.svg
177
175
[ npm-link ] : https://www.npmjs.com/package/@uploadcare/nextjs-loader
178
176
[ stackblitz-image ] : https://developer.stackblitz.com/img/open_in_stackblitz.svg
You can’t perform that action at this time.
0 commit comments