-
Notifications
You must be signed in to change notification settings - Fork 35
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
222 changed files
with
11,681 additions
and
17,901 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"root": true, | ||
"parser": "any-eslint-parser", | ||
"ignorePatterns": [ | ||
"test/**/results", | ||
"!.github", | ||
"!deploy", | ||
"package-lock.json", | ||
"pnpm/**/**", | ||
"pnpm-lock.yaml", | ||
"*.properties", | ||
"*.ts", | ||
"*.js", | ||
"*.json", | ||
"*.yml", | ||
"*.yaml", | ||
"*.json", | ||
"*.png" | ||
], | ||
"rules": { | ||
"eol-last": [ "error", "always" ] | ||
} | ||
} |
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,64 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"wikimedia/selenium", | ||
"wikimedia/language/es2019", | ||
"@wmde/wikimedia-typescript" | ||
], | ||
"ignorePatterns": [ | ||
"**/results/result.json", | ||
"!.github/**/**", | ||
"!deploy", | ||
"package-lock.json", | ||
"pnpm/**/**", | ||
"pnpm-lock.yaml", | ||
"*.properties" | ||
], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"allowImportExportEverywhere": true, | ||
"ecmaVersion": "latest" | ||
}, | ||
"rules": { | ||
"mocha/no-setup-in-describe": "warn", | ||
"node/no-missing-import": "off", | ||
"wdio/no-pause": "warn", | ||
"es-x/no-import-meta": "off", | ||
"es-x/no-nullish-coalescing-operators": "off", | ||
"es-x/no-class-fields": "off", | ||
"no-mixed-spaces-and-tabs": [ "error", "smart-tabs" ], | ||
"eol-last": [ "error", "always" ] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ "*.json" ], | ||
"rules": { | ||
"array-bracket-spacing": "off", | ||
"quotes": "off", | ||
"quote-props": [ "error", "consistent" ], | ||
"@typescript-eslint/semi": "off", | ||
"no-unused-expressions": "off" | ||
} | ||
}, | ||
{ | ||
"files": [ "*.yaml", "*.yml" ], | ||
"parser": "yaml-eslint-parser", | ||
"rules": { | ||
"max-len": "off", | ||
"spaced-comment": "off", | ||
"yml/block-sequence": 1, | ||
"yml/no-empty-mapping-value": 1, | ||
"yml/plain-scalar": 1 | ||
} | ||
}, | ||
{ | ||
"files": [ "docker-compose*.yaml", "docker-compose*.yml" ], | ||
"parser": "yaml-eslint-parser", | ||
"rules": { | ||
"yml/indent": 1, | ||
"yml/no-empty-mapping-value": "off", | ||
"yml/plain-scalar": "off" | ||
} | ||
} | ||
] | ||
} |
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,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env bash | ||
|
||
./lint.sh | ||
./nx 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Setup Node and Docker build environment" | ||
description: "Reusable action to set up the environment for builds and tests" | ||
inputs: | ||
github_token: | ||
description: token to access GHCR | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9.6.0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: 'pnpm' | ||
|
||
- name: Install Javascript dependencies (PNPM) | ||
shell: bash | ||
run: pnpm install | ||
|
||
- name: Setup QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Setup a Docker Buildx builder | ||
id: builder | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ inputs.github_token }} | ||
|
||
- name: Set NX to run locally using Node vs in Docker dev runner container | ||
shell: bash | ||
run: echo "NX_RUN_LOCAL=true" >> $GITHUB_ENV |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.