Skip to content

Commit 15abfb6

Browse files
authored
Merge pull request #153 from CleverCloud/new-clever-client
New clever client
2 parents ec927e6 + 59ed61e commit 15abfb6

File tree

627 files changed

+127478
-6368
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

627 files changed

+127478
-6368
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jobs:
3030
run: npm run lint
3131
- name: '[Code quality] Check types'
3232
run: npm run typecheck
33+
- name: '[Code quality] Check format'
34+
run: npm run format:check
3335

3436
- name: '[Unit tests] Browser tests'
35-
run: npm run test-wtr
37+
run: npm run test:unit:browser
3638
- name: '[Unit tests] Node tests'
37-
run: npm run test-mocha
39+
run: npm run test:unit:node
3840

39-
- name: '[Build] Generate client'
40-
run: npm run generate-client
41+
- name: '[Build]'
42+
run: npm run build

.github/workflows/e2e-tests.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: E2E tests
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- '**/*.md'
6+
branches-ignore:
7+
- 'release-please--**'
8+
9+
concurrency:
10+
group: preview-${{ github.event.pull_request.number }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: '[Prepare] Checkout'
19+
uses: actions/checkout@v4
20+
- name: '[Prepare] Setup Node.js'
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version-file: 'package.json'
24+
cache: 'npm'
25+
- name: '[Prepare] Install dependencies'
26+
run: npm ci
27+
28+
- name: '[E2E tests] Browser tests'
29+
env:
30+
# consumer console
31+
OAUTH_CONSUMER_KEY: ${{ secrets.OAUTH_CONSUMER_KEY }}
32+
OAUTH_CONSUMER_SECRET: ${{ secrets.OAUTH_CONSUMER_SECRET }}
33+
# ci account (linked to github)
34+
TEST_USER_WITH_GITHUB_API_TOKEN: ${{ secrets.TEST_USER_WITH_GITHUB_API_TOKEN }}
35+
TEST_USER_WITH_GITHUB_OAUTH_TOKEN: ${{ secrets.TEST_USER_WITH_GITHUB_OAUTH_TOKEN }}
36+
TEST_USER_WITH_GITHUB_OAUTH_SECRET: ${{ secrets.TEST_USER_WITH_GITHUB_OAUTH_SECRET }}
37+
TEST_USER_WITH_GITHUB_EMAIL: ${{ secrets.TEST_USER_WITH_GITHUB_EMAIL }}
38+
TEST_USER_WITH_GITHUB_PASSWORD: ${{ secrets.TEST_USER_WITH_GITHUB_PASSWORD }}
39+
# ci account (not linked to github)
40+
TEST_USER_WITHOUT_GITHUB_API_TOKEN: ${{ secrets.TEST_USER_WITHOUT_GITHUB_API_TOKEN }}
41+
TEST_USER_WITHOUT_GITHUB_OAUTH_TOKEN: ${{ secrets.TEST_USER_WITHOUT_GITHUB_OAUTH_TOKEN }}
42+
TEST_USER_WITHOUT_GITHUB_OAUTH_SECRET: ${{ secrets.TEST_USER_WITHOUT_GITHUB_OAUTH_SECRET }}
43+
run: npm run test:e2e:browser
44+
- name: '[E2E tests] Node tests'
45+
env:
46+
# consumer console
47+
OAUTH_CONSUMER_KEY: ${{ secrets.OAUTH_CONSUMER_KEY }}
48+
OAUTH_CONSUMER_SECRET: ${{ secrets.OAUTH_CONSUMER_SECRET }}
49+
# ci account (linked to github)
50+
TEST_USER_WITH_GITHUB_API_TOKEN: ${{ secrets.TEST_USER_WITH_GITHUB_API_TOKEN }}
51+
TEST_USER_WITH_GITHUB_OAUTH_TOKEN: ${{ secrets.TEST_USER_WITH_GITHUB_OAUTH_TOKEN }}
52+
TEST_USER_WITH_GITHUB_OAUTH_SECRET: ${{ secrets.TEST_USER_WITH_GITHUB_OAUTH_SECRET }}
53+
TEST_USER_WITH_GITHUB_EMAIL: ${{ secrets.TEST_USER_WITH_GITHUB_EMAIL }}
54+
TEST_USER_WITH_GITHUB_PASSWORD: ${{ secrets.TEST_USER_WITH_GITHUB_PASSWORD }}
55+
# ci account (not linked to github)
56+
TEST_USER_WITHOUT_GITHUB_API_TOKEN: ${{ secrets.TEST_USER_WITHOUT_GITHUB_API_TOKEN }}
57+
TEST_USER_WITHOUT_GITHUB_OAUTH_TOKEN: ${{ secrets.TEST_USER_WITHOUT_GITHUB_OAUTH_TOKEN }}
58+
TEST_USER_WITHOUT_GITHUB_OAUTH_SECRET: ${{ secrets.TEST_USER_WITHOUT_GITHUB_OAUTH_SECRET }}
59+
run: npm run test:e2e:node

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
*.swp
22
.cache
3-
node_modules
4-
/*.tgz
3+
.DS_Store
54
.idea
65
.env
7-
# macOS system files
8-
.DS_Store
6+
node_modules
7+
/*.tgz
8+
build
9+
dist

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
node-options = "--max-old-space-size=16384"
12
tag-version-prefix = ""
23
message = "Release %s"
34
preid = "beta"
5+
loglevel = "error"

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Ignore MD files
22
**/*.md
3+
data

0 commit comments

Comments
 (0)