Skip to content

Commit f379549

Browse files
author
ADMSK\AVROGAL1
committed
docs: updates on workflows
Added information on documentation
1 parent 50c02d9 commit f379549

5 files changed

Lines changed: 87 additions & 4 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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

@@ -33,8 +33,6 @@ jobs:
3333
restore-keys: |
3434
${{ runner.os }}-yarn-
3535
36-
- run: yarn --pure-lockfile
37-
3836
- name: Install
3937
run: yarn install
4038

.github/workflows/auto-merge.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

.github/workflows/preview.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

tests/toBase64.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require('https').globalAgent.options.rejectUnauthorized = false
55

66
describe('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-Za-z0-9+/=]/))
1010
})
1111
})

0 commit comments

Comments
 (0)