-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
213 changed files
with
21,486 additions
and
1,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ runs: | |
- name: Install deps | ||
shell: bash | ||
run: | | ||
npm install | ||
npm ci | ||
npm run test:lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,31 @@ | ||
name: Run functional tests and lint on development branches and pull requests | ||
|
||
on: | ||
push: | ||
branches: | ||
- 0-dev | ||
- 1-dev | ||
- 2-dev | ||
- master | ||
on: | ||
pull_request: # All pull requests | ||
|
||
env: | ||
NODE_VERSION: "18" | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
ssh-key: ${{ secrets.SSH_KEY }} | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Login to PaaS NPM registry | ||
uses: kuzzleio/[email protected].0 | ||
uses: kuzzleio/[email protected].3 | ||
with: | ||
username: ${{ secrets.CORE_TEAM_PAAS_USERNAME }} | ||
password: ${{ secrets.CORE_TEAM_PAAS_PASSWORD }} | ||
login_only: true | ||
npmrc_output_dir: ./ | ||
|
||
- name: Copy NPMRC | ||
run: cp .npmrc ~/.npmrc | ||
npmrc_output_dir: ~/.npmrc | ||
|
||
- uses: ./.github/actions/lint | ||
|
||
|
@@ -44,25 +35,19 @@ jobs: | |
needs: [lint] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
ssh-key: ${{ secrets.SSH_KEY }} | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Login to PaaS NPM registry | ||
uses: kuzzleio/[email protected].0 | ||
uses: kuzzleio/[email protected].3 | ||
with: | ||
username: ${{ secrets.CORE_TEAM_PAAS_USERNAME }} | ||
password: ${{ secrets.CORE_TEAM_PAAS_PASSWORD }} | ||
login_only: true | ||
npmrc_output_dir: ./ | ||
|
||
- name: Copy NPMRC | ||
run: cp .npmrc ~/.npmrc | ||
npmrc_output_dir: ~/.npmrc | ||
|
||
- uses: ./.github/actions/functional-test-backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const path = require('node:path'); | ||
|
||
module.exports = { | ||
root: true, | ||
plugins: ['kuzzle'], | ||
extends: ['plugin:kuzzle/default', 'plugin:kuzzle/node', 'plugin:kuzzle/typescript'], | ||
parserOptions: { | ||
project: path.join(__dirname, 'tsconfig.test.json'), | ||
}, | ||
rules: { | ||
'sort-keys': 'off', | ||
}, | ||
ignorePatterns: ['dist/*'], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const rootConfig = require('../../.lintstagedrc.cjs'); | ||
|
||
module.exports = { | ||
...rootConfig, | ||
'*.ts': ['eslint', () => 'tsc --noEmit -p tsconfig.test.json'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.