Skip to content

Commit 0af9e63

Browse files
committed
Merge remote-tracking branch 'upstream/alpha' into alpha
2 parents 163755d + 18915a3 commit 0af9e63

File tree

234 files changed

+48485
-29049
lines changed

Some content is hidden

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

234 files changed

+48485
-29049
lines changed

.eslintrc.json

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 69 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,46 +16,96 @@ jobs:
1616
uses: mansona/npm-lockfile-version@v1
1717
with:
1818
version: 2
19+
check-types:
20+
name: Check Types
21+
timeout-minutes: 10
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
cache: npm
29+
- run: npm ci
30+
- name: Build Types
31+
run: npm run build:types
32+
- name: Test Types
33+
run: npm run test:types
34+
- name: Lint Types
35+
run: npm run lint:types
36+
check-docs:
37+
name: Check Docs
38+
timeout-minutes: 10
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- name: Use Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
cache: npm
46+
- run: npm ci
47+
- name: Check Docs
48+
run: npm run docs
49+
check-circular:
50+
name: Check Circular Dependencies
51+
timeout-minutes: 15
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v3
55+
- name: Use Node.js
56+
uses: actions/setup-node@v4
57+
with:
58+
cache: npm
59+
- run: npm ci
60+
- name: Circular Dependencies
61+
run: npm run madge:circular
62+
check-lint:
63+
name: Lint
64+
timeout-minutes: 15
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v4
68+
- name: Use Node.js
69+
uses: actions/setup-node@v4
70+
with:
71+
cache: npm
72+
- name: Install dependencies
73+
run: npm ci
74+
- name: Lint
75+
run: npm run lint
1976
build:
2077
runs-on: ubuntu-latest
2178
timeout-minutes: 30
2279
strategy:
2380
matrix:
2481
include:
25-
- name: Node 14
26-
NODE_VERSION: 14.21.1
27-
- name: Node 16
28-
NODE_VERSION: 16.18.1
2982
- name: Node 18
30-
NODE_VERSION: 18.12.1
31-
- name: Node 19
32-
NODE_VERSION: 19.3.0
83+
NODE_VERSION: 18.20.4
84+
- name: Node 20
85+
NODE_VERSION: 20.15.1
86+
- name: Node 22
87+
NODE_VERSION: 22.4.1
3388
fail-fast: false
3489
steps:
3590
- name: Fix usage of insecure GitHub protocol
3691
run: sudo git config --system url."https://github".insteadOf "git://github"
37-
- name: Fix git protocol for Node 14
38-
if: ${{ startsWith(matrix.NODE_VERSION, '14.') }}
39-
run: sudo git config --system url."https://github".insteadOf "ssh://git@github"
4092
- uses: actions/checkout@v3
4193
- name: Use Node.js
4294
uses: actions/setup-node@v3
4395
with:
4496
node-version: ${{ matrix.NODE_VERSION }}
45-
- name: Cache Node.js modules
46-
uses: actions/cache@v3
47-
with:
48-
path: ~/.npm
49-
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
50-
restore-keys: |
51-
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
97+
cache: npm
5298
- run: npm ci
53-
- run: npm run lint
5499
- run: npm test -- --maxWorkers=4
55100
- run: npm run test:mongodb
56101
env:
57102
CI: true
58-
- run: bash <(curl -s https://codecov.io/bash)
103+
- name: Upload code coverage
104+
uses: codecov/codecov-action@v4
105+
with:
106+
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
107+
fail_ci_if_error: false
108+
token: ${{ secrets.CODECOV_TOKEN }}
59109
concurrency:
60110
group: ${{ github.workflow }}-${{ github.ref }}
61111
cancel-in-progress: true

.github/workflows/release-automated.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ jobs:
1717
persist-credentials: false
1818
- uses: actions/setup-node@v2
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
registry-url: https://registry.npmjs.org/
22-
- name: Cache Node.js modules
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.npm
26-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27-
restore-keys: |
28-
${{ runner.os }}-node-
22+
cache: npm
2923
- run: npm ci
3024
- run: npx semantic-release
3125
env:
@@ -35,7 +29,7 @@ jobs:
3529
- name: Determine tag on current commit
3630
id: tag
3731
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
38-
32+
3933
docs-publish:
4034
needs: release
4135
if: needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release'
@@ -48,14 +42,8 @@ jobs:
4842
- name: Use Node.js
4943
uses: actions/setup-node@v1
5044
with:
51-
node-version: 16
52-
- name: Cache Node.js modules
53-
uses: actions/cache@v2
54-
with:
55-
path: ~/.npm
56-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
57-
restore-keys: |
58-
${{ runner.os }}-node-
45+
node-version: 18
46+
cache: npm
5947
- name: Generate Docs
6048
run: |
6149
npm ci

.github/workflows/release-manual-docs.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
inputs:
55
tag:
66
default: ''
7-
description: 'Version tag:'
7+
description: 'Version tag:'
88
jobs:
99
docs-publish:
1010
if: github.event.inputs.tag != ''
@@ -15,16 +15,10 @@ jobs:
1515
with:
1616
ref: ${{ github.event.inputs.tag }}
1717
- name: Use Node.js
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v2
1919
with:
20-
node-version: 16
21-
- name: Cache Node.js modules
22-
uses: actions/cache@v2
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-node-
20+
node-version: 18
21+
cache: npm
2822
- name: Generate Docs
2923
run: |
3024
npm ci

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run pre-commit

.madgerc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"detectiveOptions": {
3+
"ts": {
4+
"skipTypeImports": true
5+
},
6+
"es6": {
7+
"skipTypeImports": true
8+
}
9+
}
10+
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.15.0

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ semi: true
22
trailingComma: "es5"
33
singleQuote: true
44
arrowParens: "avoid"
5-
printWidth: 100
5+
printWidth: 100
6+
parser: "typescript"

2.0.0.md

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)