-
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.
T349803, T369642, T352252, T368382: nx monorepo setup for versioning,…
… and CHANGELOG generation (#735) * Make image builds more atomic * Add version spec to all images * Rename build resources to match published image names * Move typescript setup to root * fix(wdqs-frontend): FRONTED to FRONTEND typo * feat(wbs-release): add nvmrc spec for current node LTS ("lts/iron") * Standardize on node:iron-bullseye tag for node LTS * Upgrades to latest WDIO v8 minor version * Removes unnused browserslist from package.json * Move over to buildx on CI on the way to multi-platform builds * Makes lint available for individual build projects * Adds notes on multi-platform builds
- Loading branch information
1 parent
c837e9b
commit 8946bc9
Showing
144 changed files
with
11,014 additions
and
14,302 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.