File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313 strategy :
1414 matrix :
15- node : [ "10 ", "12 ", "14" ]
15+ node : [ "12 ", "13 ", "14" ]
1616 steps :
1717 - uses : actions/checkout@v2
1818
3333 restore-keys : |
3434 ${{ runner.os }}-yarn-
3535
36- - run : yarn --pure-lockfile
37-
3836 - name : Install
3937 run : yarn install
4038
Original file line number Diff line number Diff line change 1+ name : auto-merge
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ auto-merge :
8+ runs-on : ubuntu-latest
9+ if : ${{ secrets.AUTOMERGE_TOKEN }} && github.actor == 'dependabot[bot]'
10+ steps :
11+ - uses : ahmadnassri/action-dependabot-auto-merge@v2.3
12+ with :
13+ github-token : ${{ secrets.AUTOMERGE_TOKEN }}
14+ command : " squash and merge"
15+ approve : true
16+ target : minor
Original file line number Diff line number Diff line change 1+ name : Markdown lint (project files)
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ paths :
8+ - ' *.md'
9+ - .github/workflows/markdown-lint.yml
10+
11+ jobs :
12+ docs :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+
18+ - name : Setup Node.js environment
19+ uses : actions/setup-node@v2
20+ with :
21+ node-version : " 12"
22+
23+ - name : Lint markdown files
24+ run : |
25+ npx markdownlint-cli '*.md' -i LICENSE.md -i CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change 1+ name : Preview
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - package.json
7+ - yarn.lock
8+ - .github/workflows/preview.yml
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v2
16+
17+ - name : Setup Node.js environment
18+ uses : actions/setup-node@v2.1.4
19+ with :
20+ node-version : " 12"
21+
22+ - uses : actions/cache@v2.1.4
23+ with :
24+ path : ~/.npm
25+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+ restore-keys : |
27+ ${{ runner.os }}-node-
28+
29+ - name : Install all node packages
30+ run : |
31+ npm install
32+
33+ - name : Run test all
34+ run : |
35+ npm run test:all
36+
37+ - name : Start development server
38+ run : |
39+ npm run develop &
40+
41+ - name : Test development server
42+ run : |
43+ curl --retry-connrefused --retry 5 http://localhost:3000/
44+ curl --fail http://localhost:3000/api?url=https://raw.githubusercontent.com/plotly/plotly.js/master/test/image/mocks/0.json&width=400&height=400 > /dev/null
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ require('https').globalAgent.options.rejectUnauthorized = false
55
66describe ( 'Image URL to base64 string' , ( ) => {
77 test ( 'it should be a string base64' , async ( ) => {
8- const imageUrl = 'https://avatars1.githubusercontent.com/u/33148052?v=4 '
8+ const imageUrl = 'https://upload.wikimedia.org/wikipedia/commons/5/50/Oracle_logo.svg '
99 expect ( await toBase64ImageUrl ( imageUrl ) ) . toMatch ( new RegExp ( / [ A - Z a - z 0 - 9 + / = ] / ) )
1010 } )
1111} )
You can’t perform that action at this time.
0 commit comments