From b1817cd802e3c46512c052f35cc49eb29c324f24 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 10:07:11 +0000 Subject: [PATCH 01/10] build(deps): add addons-linter package --- package.json | 4 +- yarn.lock | 381 +++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 373 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 04ae8ecc..6ebc5feb 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "start:extension": "cross-env TS_NODE_PROJECT=\"webpack/tsconfig.webpack.json\" webpack --config webpack/webpack.config.ts --config-name development --watch", "start:dapp": "cross-env TS_NODE_PROJECT=\"webpack/tsconfig.webpack.json\" webpack serve --config webpack/webpack.config.ts --config-name dapp", "start:firefox": "web-ext run", - "test": "jest" + "test": "jest", + "validate:firefox": "addons-linter .build/" }, "devDependencies": { "@commitlint/cli": "^17.4.4", @@ -61,6 +62,7 @@ "@walletconnect/types": "^2.8.0", "@web3modal/sign-react": "^2.4.5", "add": "^2.0.6", + "addons-linter": "^6.17.0", "concurrently": "^7.6.0", "copy-webpack-plugin": "^11.0.0", "cross-env": "^7.0.3", diff --git a/yarn.lock b/yarn.lock index b83c2111..e5eec249 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@aashutoshrathi/word-wrap@^1.2.3": + version "1.2.6" + resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" + integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== + "@agoralabs-sh/algorand-provider@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@agoralabs-sh/algorand-provider/-/algorand-provider-1.1.0.tgz#4bab3668715131692b37882231d3d023b9c8cd78" @@ -1551,6 +1556,18 @@ resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.3.0.tgz#ea89004119dc42db2e1dba0f97d553f7372f6fcb" integrity sha512-AHPmaAx+RYfZz0eYu6Gviiagpmiyw98ySSlQvCUhVGDRtDFe4DBS0x1bSjdF3gqUDYOczB+yYvBTtEylYSdRhg== +"@eslint-community/eslint-utils@^4.2.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.6.1": + version "4.10.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" + integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== + "@eslint/eslintrc@^1.4.1": version "1.4.1" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.4.1.tgz#af58772019a2d271b7e2d4c23ff4ddcba3ccfb3e" @@ -1581,11 +1598,31 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@eslint/eslintrc@^2.1.3": + version "2.1.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.3.tgz#797470a75fe0fbd5a53350ee715e85e87baff22d" + integrity sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + "@eslint/js@8.35.0": version "8.35.0" resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.35.0.tgz#b7569632b0b788a0ca0e438235154e45d42813a7" integrity sha512-JXdzbRiWclLVoD8sNUjR443VVlYqiYmDVT6rGUEIEHU5YJW0gaVZwV2xgM7D4arkvASqD0IlLUVjHiFuxaftRw== +"@eslint/js@8.53.0": + version "8.53.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.53.0.tgz#bea56f2ed2b5baea164348ff4d5a879f6f81f20d" + integrity sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w== + "@ethersproject/abstract-provider@^5.7.0": version "5.7.0" resolved "https://registry.yarnpkg.com/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz#b0a8550f88b6bf9d51f90e4795d48294630cb9ef" @@ -1753,11 +1790,25 @@ resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-7.6.0.tgz#9ea331766084288634a9247fcd8b84f16ff4ba07" integrity sha512-XK6BTq1NDMo9Xqw/YkYyGjSsg44fbNwYRx7QK2CuoQgyy+f1rrTDHoExVM5PsyXCtfl2vs2vVJ0MN0yN6LppRw== +"@fluent/syntax@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@fluent/syntax/-/syntax-0.19.0.tgz#43f882faba6908b0f1013f6a94e009d0dfbdcb77" + integrity sha512-5D2qVpZrgpjtqU4eNOcWGp1gnUCgjfM+vKGE2y03kKN6z5EBhtx0qdRFbg8QuNNj8wXNoX93KJoYb+NqoxswmQ== + "@gar/promisify@^1.1.3": version "1.1.3" resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== +"@humanwhocodes/config-array@^0.11.13": + version "0.11.13" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz#075dc9684f40a531d9b26b0822153c1e832ee297" + integrity sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ== + dependencies: + "@humanwhocodes/object-schema" "^2.0.1" + debug "^4.1.1" + minimatch "^3.0.5" + "@humanwhocodes/config-array@^0.11.8": version "0.11.8" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9" @@ -1777,6 +1828,23 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== +"@humanwhocodes/object-schema@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz#e5211452df060fa8522b55c7b3c0c4d1981cb044" + integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw== + +"@isaacs/cliui@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" + integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== + dependencies: + string-width "^5.1.2" + string-width-cjs "npm:string-width@^4.2.0" + strip-ansi "^7.0.1" + strip-ansi-cjs "npm:strip-ansi@^6.0.1" + wrap-ansi "^8.1.0" + wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" + "@isaacs/string-locale-compare@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz#291c227e93fd407a96ecd59879a35809120e432b" @@ -2068,6 +2136,11 @@ resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.2.29.tgz#7f29e9a108aaf789600dd36e8442fe89ab41a815" integrity sha512-bEBrkTWbDAs/PB4IdRg4CtU750oBRytXHK/wC2oIDkgKZqnt76nACSooQQuHF11mK5k43f/IgFUMO5t5quRPVA== +"@mdn/browser-compat-data@5.3.29": + version "5.3.29" + resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.3.29.tgz#4e2620a36fea61de464a8b59461c6d3bbd064a5b" + integrity sha512-ipYCpMxejriKEC5OMHHN+cTTWpTQhaSg9+RGHl/Vly2LhGNml2eiGdx+LCU4XcCsi4YVVVPGcirNI/dF1xj70w== + "@motionone/animation@^10.15.1": version "10.15.1" resolved "https://registry.yarnpkg.com/@motionone/animation/-/animation-10.15.1.tgz#4a85596c31cbc5100ae8eb8b34c459fb0ccf6807" @@ -2431,6 +2504,11 @@ dependencies: "@octokit/openapi-types" "^16.0.0" +"@pkgjs/parseargs@^0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" + integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== + "@pnpm/network.ca-file@^1.0.1": version "1.0.2" resolved "https://registry.yarnpkg.com/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz#2ab05e09c1af0cdf2fcf5035bea1484e222f7983" @@ -3184,6 +3262,13 @@ dependencies: "@types/node" "*" +"@types/yauzl@2.10.1": + version "2.10.1" + resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.1.tgz#4e8f299f0934d60f36c74f59cb5a8483fd786691" + integrity sha512-CHzgNU3qYBnp/O4S3yv2tXPlvMTq0YWSTVg2/JYLqWZGHwwgJGAwd00poay/11asPq8wLFwHzubyInqHIFmmiw== + dependencies: + "@types/node" "*" + "@types/zxcvbn@^4.4.1": version "4.4.1" resolved "https://registry.yarnpkg.com/@types/zxcvbn/-/zxcvbn-4.4.1.tgz#46e42cbdcee681b22181478feaf4af2bc4c1abd2" @@ -3273,6 +3358,11 @@ "@typescript-eslint/types" "5.54.0" eslint-visitor-keys "^3.3.0" +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== + "@walletconnect/auth-client@2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@walletconnect/auth-client/-/auth-client-2.1.0.tgz#47b794cf807d6211fe3a87531f7fca7c6838fd3c" @@ -3760,6 +3850,11 @@ acorn@^8.1.0, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.8.0, acorn@^8.8 resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== +acorn@^8.9.0: + version "8.11.2" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.2.tgz#ca0d78b51895be5390a5903c5b3bdcdaf78ae40b" + integrity sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w== + add@^2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/add/-/add-2.0.6.tgz#248f0a9f6e5a528ef2295dbeec30532130ae2235" @@ -3803,6 +3898,44 @@ addons-linter@5.27.0: yargs "17.6.2" yauzl "2.10.0" +addons-linter@^6.17.0: + version "6.17.0" + resolved "https://registry.yarnpkg.com/addons-linter/-/addons-linter-6.17.0.tgz#739a28c3977d8b9583ede87c4da6989881f8e105" + integrity sha512-Se+kfVgOef4bN0n6hKeHf44U/CbwI80fTy+wmyyIWiwUCwz6T4zX2q/6wlte/i5UWqlY1RpRBh+GPigAfLZ//Q== + dependencies: + "@fluent/syntax" "0.19.0" + "@mdn/browser-compat-data" "5.3.29" + addons-moz-compare "1.3.0" + addons-scanner-utils "9.7.0" + ajv "8.12.0" + chalk "4.1.2" + cheerio "1.0.0-rc.12" + columnify "1.6.0" + common-tags "1.8.2" + deepmerge "4.3.1" + eslint "8.53.0" + eslint-plugin-no-unsanitized "4.0.2" + eslint-visitor-keys "3.4.3" + espree "9.6.1" + esprima "4.0.1" + fast-json-patch "3.1.1" + glob "10.3.10" + image-size "1.0.2" + is-mergeable-object "1.1.1" + jed "1.1.1" + json-merge-patch "1.0.2" + os-locale "5.0.0" + pino "8.16.1" + postcss "8.4.31" + relaxed-json "1.0.3" + semver "7.5.4" + sha.js "2.4.11" + source-map-support "0.5.21" + tosource "1.0.0" + upath "2.0.1" + yargs "17.7.2" + yauzl "2.10.0" + addons-moz-compare@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/addons-moz-compare/-/addons-moz-compare-1.3.0.tgz#9074dce00291cef998c2fba6b462d041cc6b3e36" @@ -3820,6 +3953,18 @@ addons-scanner-utils@8.3.0: upath "2.0.1" yauzl "2.10.0" +addons-scanner-utils@9.7.0: + version "9.7.0" + resolved "https://registry.yarnpkg.com/addons-scanner-utils/-/addons-scanner-utils-9.7.0.tgz#08585899ab65cf10bbfda05754e6fbd4ac692765" + integrity sha512-pjmNO+i9R1NkYplZVkO18T7SA6qogYC2p12NizGDN8pLmzS5EHQvGV1neKbgQjxmSjG72h8Y5a4POkfPEnKcEg== + dependencies: + "@types/yauzl" "2.10.1" + common-tags "1.8.2" + first-chunk-stream "3.0.0" + strip-bom-stream "4.0.0" + upath "2.0.1" + yauzl "2.10.0" + adm-zip@~0.5.x: version "0.5.10" resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.5.10.tgz#4a51d5ab544b1f5ce51e1b9043139b639afff45b" @@ -5359,6 +5504,11 @@ deepmerge@4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== +deepmerge@4.3.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== + deepmerge@^4.2.2: version "4.3.0" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.0.tgz#65491893ec47756d44719ae520e0e2609233b59b" @@ -5854,6 +6004,14 @@ eslint-scope@^7.1.1: esrecurse "^4.3.0" estraverse "^5.2.0" +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + eslint-utils@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" @@ -5866,6 +6024,11 @@ eslint-visitor-keys@3.3.0, eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== +eslint-visitor-keys@3.4.3, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + eslint-visitor-keys@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" @@ -5916,6 +6079,50 @@ eslint@8.32.0: strip-json-comments "^3.1.0" text-table "^0.2.0" +eslint@8.53.0: + version "8.53.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.53.0.tgz#14f2c8244298fcae1f46945459577413ba2697ce" + integrity sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.3" + "@eslint/js" "8.53.0" + "@humanwhocodes/config-array" "^0.11.13" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + "@ungap/structured-clone" "^1.2.0" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.3" + strip-ansi "^6.0.1" + text-table "^0.2.0" + eslint@^8.35.0: version "8.35.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.35.0.tgz#fffad7c7e326bae606f0e8f436a6158566d42323" @@ -5971,6 +6178,15 @@ espree@9.4.1, espree@^9.4.0: acorn-jsx "^5.3.2" eslint-visitor-keys "^3.3.0" +espree@9.6.1, espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== + dependencies: + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" + esprima@4.0.1, esprima@^4.0.0, esprima@^4.0.1, esprima@~4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" @@ -6376,6 +6592,14 @@ follow-redirects@^1.0.0: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== +foreground-child@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.1.1.tgz#1d173e776d75d2772fed08efe4a0de1ea1b12d0d" + integrity sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^4.0.1" + forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" @@ -6607,6 +6831,17 @@ glob-to-regexp@^0.4.1: resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== +glob@10.3.10: + version "10.3.10" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.10.tgz#0351ebb809fd187fe421ab96af83d3a70715df4b" + integrity sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g== + dependencies: + foreground-child "^3.1.0" + jackspeak "^2.3.5" + minimatch "^9.0.1" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + path-scurry "^1.10.1" + glob@8.1.0, glob@^8.0.1: version "8.1.0" resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" @@ -6722,6 +6957,11 @@ grapheme-splitter@^1.0.4: resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + growly@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" @@ -7563,6 +7803,15 @@ istanbul-reports@^3.1.3: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" +jackspeak@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8" + integrity sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + java-properties@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/java-properties/-/java-properties-1.0.2.tgz#ccd1fa73907438a5b5c38982269d0e771fe78211" @@ -8658,6 +8907,13 @@ lru-cache@^7.4.4, lru-cache@^7.5.1, lru-cache@^7.7.1: resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.17.0.tgz#00c7ba5919e5ea7c69ff94ddabbf32cb09ab805c" integrity sha512-zSxlVVwOabhVyTi6E8gYv2cr6bXK+8ifYz5/uyJb9feXX6NACVDwY4p5Ut3WC3Ivo/QhpARHU3iujx2xGAYHbQ== +"lru-cache@^9.1.1 || ^10.0.0": + version "10.0.2" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.0.2.tgz#34504678cc3266b09b8dfd6fab4e1515258271b7" + integrity sha512-Yj9mA8fPiVgOUpByoTZO5pNrcl5Yk37FcSHsUINpAsaBIEZIuqcCclDZJCVxqQShDsmYX8QG63svJiTbOATZwg== + dependencies: + semver "^7.3.5" + make-dir@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" @@ -9117,6 +9373,13 @@ minimatch@^5.0.1, minimatch@^5.1.0: dependencies: brace-expansion "^2.0.1" +minimatch@^9.0.1: + version "9.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" + integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== + dependencies: + brace-expansion "^2.0.1" + minimist-options@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" @@ -9190,6 +9453,11 @@ minipass@^4.0.0: resolved "https://registry.yarnpkg.com/minipass/-/minipass-4.2.4.tgz#7d0d97434b6a19f59c5c3221698b48bbf3b2cd06" integrity sha512-lwycX3cBMTvcejsHITUgYj6Gy6A7Nh4Q6h9NP4sTHY1ccJlC7yKzDmiShEHsJ16Jf1nKGDEaiHxiltsJEvk0nQ== +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0": + version "7.0.4" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.0.4.tgz#dbce03740f50a4786ba994c1fb908844d27b038c" + integrity sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ== + minizlib@^2.1.1, minizlib@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" @@ -9332,6 +9600,11 @@ nanoid@^3.3.4: resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== +nanoid@^3.3.6: + version "3.3.7" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" + integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== + natural-compare-lite@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" @@ -9833,6 +10106,18 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" +optionator@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64" + integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== + dependencies: + "@aashutoshrathi/word-wrap" "^1.2.3" + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + os-locale@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-5.0.0.tgz#6d26c1d95b6597c5d5317bf5fba37eccec3672e0" @@ -10132,6 +10417,14 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== +path-scurry@^1.10.1: + version "1.10.1" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.1.tgz#9ba6bf5aa8500fe9fd67df4f0d9483b2b0bfc698" + integrity sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ== + dependencies: + lru-cache "^9.1.1 || ^10.0.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + path-to-regexp@0.1.7: version "0.1.7" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" @@ -10188,6 +10481,14 @@ pino-abstract-transport@v1.0.0: readable-stream "^4.0.0" split2 "^4.0.0" +pino-abstract-transport@v1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz#083d98f966262164504afb989bccd05f665937a8" + integrity sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA== + dependencies: + readable-stream "^4.0.0" + split2 "^4.0.0" + pino-std-serializers@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-4.0.0.tgz#1791ccd2539c091ae49ce9993205e2cd5dbba1e2" @@ -10215,6 +10516,23 @@ pino@7.11.0: sonic-boom "^2.2.1" thread-stream "^0.15.1" +pino@8.16.1: + version "8.16.1" + resolved "https://registry.yarnpkg.com/pino/-/pino-8.16.1.tgz#dcaf82764b1a27f24101317cdd6453e96290f1d9" + integrity sha512-3bKsVhBmgPjGV9pyn4fO/8RtoVDR8ssW1ev819FsRXlRNgW8gR/9Kx+gCK4UPWd4JjrRDLWpzd/pb1AyWm3MGA== + dependencies: + atomic-sleep "^1.0.0" + fast-redact "^3.1.1" + on-exit-leak-free "^2.1.0" + pino-abstract-transport v1.1.0 + pino-std-serializers "^6.0.0" + process-warning "^2.0.0" + quick-format-unescaped "^4.0.3" + real-require "^0.2.0" + safe-stable-stringify "^2.3.1" + sonic-boom "^3.7.0" + thread-stream "^2.0.0" + pino@8.8.0: version "8.8.0" resolved "https://registry.yarnpkg.com/pino/-/pino-8.8.0.tgz#1f0d6695a224aa06afc7ad60f2ccc4772d3b9233" @@ -10279,6 +10597,15 @@ postcss@8.4.21: picocolors "^1.0.0" source-map-js "^1.0.2" +postcss@8.4.31: + version "8.4.31" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.31.tgz#92b451050a9f914da6755af352bdc0192508656d" + integrity sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ== + dependencies: + nanoid "^3.3.6" + picocolors "^1.0.0" + source-map-js "^1.0.2" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -11250,6 +11577,13 @@ semver@7.3.8, semver@7.x, semver@^7.0.0, semver@^7.1.1, semver@^7.1.2, semver@^7 dependencies: lru-cache "^6.0.0" +semver@7.5.4: + version "7.5.4" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== + dependencies: + lru-cache "^6.0.0" + semver@^6.0.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" @@ -11401,6 +11735,11 @@ signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== +signal-exit@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + signale@^1.2.1: version "1.4.0" resolved "https://registry.yarnpkg.com/signale/-/signale-1.4.0.tgz#c4be58302fb0262ac00fc3d886a7c113759042f1" @@ -11496,6 +11835,13 @@ sonic-boom@^3.1.0: dependencies: atomic-sleep "^1.0.0" +sonic-boom@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/sonic-boom/-/sonic-boom-3.7.0.tgz#b4b7b8049a912986f4a92c51d4660b721b11f2f2" + integrity sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg== + dependencies: + atomic-sleep "^1.0.0" + source-map-js@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" @@ -11721,7 +12067,7 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -11753,7 +12099,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -12944,25 +13290,25 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== dependencies: ansi-styles "^4.0.0" string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== dependencies: ansi-styles "^4.0.0" string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^8.0.1: +wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== @@ -13108,6 +13454,19 @@ yargs@17.6.2: y18n "^5.0.5" yargs-parser "^21.1.1" +yargs@17.7.2: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + yargs@^15.3.1: version "15.4.1" resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" From fd3c47ee695d91e0ecc23b683cb8dfca92572974 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 10:07:57 +0000 Subject: [PATCH 02/10] ci: add validation to pull request checks workflow and add concurrency to jobs --- .../clean_up_pull_request_checks.yml | 21 ++++ .github/workflows/lint_build_test.yml | 24 ---- .github/workflows/pull_request_checks.yml | 112 ++++++++++++++++++ 3 files changed, 133 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/clean_up_pull_request_checks.yml delete mode 100644 .github/workflows/lint_build_test.yml create mode 100644 .github/workflows/pull_request_checks.yml diff --git a/.github/workflows/clean_up_pull_request_checks.yml b/.github/workflows/clean_up_pull_request_checks.yml new file mode 100644 index 00000000..904a40f0 --- /dev/null +++ b/.github/workflows/clean_up_pull_request_checks.yml @@ -0,0 +1,21 @@ +name: Clean Up Pull Request Checks + +on: + workflow_run: + workflows: ["Pull Request Checks"] + types: + - completed + + +jobs: + delete_artifacts: + name: "Delete Artifacts" + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ—‘๏ธ Delete" + uses: geekyeggo/delete-artifact@v2 + with: + failOnError: false + name: | + build + node_modules diff --git a/.github/workflows/lint_build_test.yml b/.github/workflows/lint_build_test.yml deleted file mode 100644 index c32d0625..00000000 --- a/.github/workflows/lint_build_test.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Pull Request Checks - -on: - pull_request: - -jobs: - lint_build_test: - name: "Lint, Build & Test" - runs-on: ubuntu-latest - steps: - - name: "๐Ÿ›Ž Checkout" - uses: actions/checkout@v3 - - name: "๐Ÿ”ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - - name: "๐Ÿ“ฆ Install" - run: yarn install --ignore-scripts - - name: "๐Ÿ‘• Lint" - run: yarn lint - - name: "๐Ÿ—๏ธ Build" - run: yarn build - - name: "๐Ÿงช Test" - run: yarn test diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml new file mode 100644 index 00000000..646dcef3 --- /dev/null +++ b/.github/workflows/pull_request_checks.yml @@ -0,0 +1,112 @@ +name: Pull Request Checks + +on: + pull_request: + +jobs: + install: + name: "Install" + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ›Ž Checkout" + uses: actions/checkout@v3 + - name: "๐Ÿ”ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: "๐Ÿ“ฆ Install" + run: yarn install --ignore-scripts + - name: "๐Ÿ“ค Upload dependencies" + uses: actions/upload-artifact@v3 + with: + name: node_modules + path: node_modules + + ## + # needs install + ## + + lint: + name: "Lint" + needs: install + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ›Ž Checkout" + uses: actions/checkout@v3 + - name: "๐Ÿ”ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: "๐Ÿ“ฅ Download dependencies" + uses: actions/download-artifact@v3 + with: + name: node_modules + - name: "๐Ÿ‘• Lint" + run: yarn lint + + build: + name: "Build" + needs: install + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ›Ž Checkout" + uses: actions/checkout@v3 + - name: "๐Ÿ”ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: "๐Ÿ“ฅ Download dependencies" + uses: actions/download-artifact@v3 + with: + name: node_modules + - name: "๐Ÿ—๏ธ Build" + run: yarn build + - name: "๐Ÿ“ค Upload build" + uses: actions/upload-artifact@v3 + with: + name: build + path: .build + + test: + name: "Test" + needs: install + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ›Ž Checkout" + uses: actions/checkout@v3 + - name: "๐Ÿ”ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: "๐Ÿ“ฅ Download dependencies" + uses: actions/download-artifact@v3 + with: + name: node_modules + - name: "๐Ÿงช Test" + run: yarn test + + ## + # needs install/build + ## + + validate_firefox: + name: "Validate Firefox" + needs: [install, build] + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ›Ž Checkout" + uses: actions/checkout@v3 + - name: "๐Ÿ”ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: "๐Ÿ“ฅ Download dependencies" + uses: actions/download-artifact@v3 + with: + name: node_modules + - name: "๐Ÿ“ฅ Download build" + uses: actions/download-artifact@v3 + with: + name: build + - name: "โœ… Validate" + run: yarn validate:firefox From 9597a8c917232576e45c99cf4c55f014f9133e3a Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 10:26:35 +0000 Subject: [PATCH 03/10] ci: zip artifacts before uploading --- .github/workflows/pull_request_checks.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 646dcef3..8ae3ecee 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -16,11 +16,13 @@ jobs: node-version: 'lts/*' - name: "๐Ÿ“ฆ Install" run: yarn install --ignore-scripts + - name: "๐Ÿ—œ๏ธ Zip dependencies" + run: zip -r node_modules.zip node_modules/ - name: "๐Ÿ“ค Upload dependencies" uses: actions/upload-artifact@v3 with: name: node_modules - path: node_modules + path: node_modules.zip ## # needs install @@ -41,6 +43,8 @@ jobs: uses: actions/download-artifact@v3 with: name: node_modules + - name: "๐Ÿ—œ๏ธ Unzip dependencies" + run: unzip node_modules.zip - name: "๐Ÿ‘• Lint" run: yarn lint @@ -59,13 +63,17 @@ jobs: uses: actions/download-artifact@v3 with: name: node_modules + - name: "๐Ÿ—œ๏ธ Unzip dependencies" + run: unzip node_modules.zip - name: "๐Ÿ—๏ธ Build" run: yarn build + - name: "๐Ÿ—œ๏ธ Zip build" + run: zip -r build.zip .build/ - name: "๐Ÿ“ค Upload build" uses: actions/upload-artifact@v3 with: name: build - path: .build + path: build.zip test: name: "Test" @@ -82,6 +90,8 @@ jobs: uses: actions/download-artifact@v3 with: name: node_modules + - name: "๐Ÿ—œ๏ธ Unzip dependencies" + run: unzip node_modules.zip - name: "๐Ÿงช Test" run: yarn test @@ -104,9 +114,13 @@ jobs: uses: actions/download-artifact@v3 with: name: node_modules + - name: "๐Ÿ—œ๏ธ Unzip dependencies" + run: unzip node_modules.zip - name: "๐Ÿ“ฅ Download build" uses: actions/download-artifact@v3 with: name: build + - name: "๐Ÿ—œ๏ธ Unzip build" + run: unzip build.zip - name: "โœ… Validate" run: yarn validate:firefox From 64de35bb5db8c82fba2404f3a0f6b38a97351478 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 10:49:07 +0000 Subject: [PATCH 04/10] ci: use dependency caching --- .../clean_up_pull_request_checks.yml | 3 +- .github/workflows/pull_request_checks.yml | 55 ++++++++++--------- webpack/webpack.config.ts | 2 +- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/clean_up_pull_request_checks.yml b/.github/workflows/clean_up_pull_request_checks.yml index 904a40f0..53abe545 100644 --- a/.github/workflows/clean_up_pull_request_checks.yml +++ b/.github/workflows/clean_up_pull_request_checks.yml @@ -2,7 +2,7 @@ name: Clean Up Pull Request Checks on: workflow_run: - workflows: ["Pull Request Checks"] + workflows: [Pull Request Checks] types: - completed @@ -18,4 +18,3 @@ jobs: failOnError: false name: | build - node_modules diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 8ae3ecee..83ac5a24 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -14,15 +14,16 @@ jobs: uses: actions/setup-node@v3 with: node-version: 'lts/*' + cache: 'yarn' + - name: "๐Ÿ’พ Cache dependencies" + uses: actions/cache@v3 + id: cache-dependencies + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} - name: "๐Ÿ“ฆ Install" + if: steps.cache-dependencies.outputs.cache-hit != 'true' run: yarn install --ignore-scripts - - name: "๐Ÿ—œ๏ธ Zip dependencies" - run: zip -r node_modules.zip node_modules/ - - name: "๐Ÿ“ค Upload dependencies" - uses: actions/upload-artifact@v3 - with: - name: node_modules - path: node_modules.zip ## # needs install @@ -39,12 +40,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: 'lts/*' - - name: "๐Ÿ“ฅ Download dependencies" - uses: actions/download-artifact@v3 + cache: 'yarn' + - name: "๐Ÿ’พ Cache dependencies" + uses: actions/cache@v3 with: - name: node_modules - - name: "๐Ÿ—œ๏ธ Unzip dependencies" - run: unzip node_modules.zip + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} - name: "๐Ÿ‘• Lint" run: yarn lint @@ -59,12 +60,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: 'lts/*' - - name: "๐Ÿ“ฅ Download dependencies" - uses: actions/download-artifact@v3 + cache: 'yarn' + - name: "๐Ÿ’พ Cache dependencies" + uses: actions/cache@v3 with: - name: node_modules - - name: "๐Ÿ—œ๏ธ Unzip dependencies" - run: unzip node_modules.zip + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} - name: "๐Ÿ—๏ธ Build" run: yarn build - name: "๐Ÿ—œ๏ธ Zip build" @@ -86,12 +87,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: 'lts/*' - - name: "๐Ÿ“ฅ Download dependencies" - uses: actions/download-artifact@v3 + cache: 'yarn' + - name: "๐Ÿ’พ Cache dependencies" + uses: actions/cache@v3 with: - name: node_modules - - name: "๐Ÿ—œ๏ธ Unzip dependencies" - run: unzip node_modules.zip + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} - name: "๐Ÿงช Test" run: yarn test @@ -110,12 +111,12 @@ jobs: uses: actions/setup-node@v3 with: node-version: 'lts/*' - - name: "๐Ÿ“ฅ Download dependencies" - uses: actions/download-artifact@v3 + cache: 'yarn' + - name: "๐Ÿ’พ Cache dependencies" + uses: actions/cache@v3 with: - name: node_modules - - name: "๐Ÿ—œ๏ธ Unzip dependencies" - run: unzip node_modules.zip + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} - name: "๐Ÿ“ฅ Download build" uses: actions/download-artifact@v3 with: diff --git a/webpack/webpack.config.ts b/webpack/webpack.config.ts index 47d75e7c..ace5c4cc 100644 --- a/webpack/webpack.config.ts +++ b/webpack/webpack.config.ts @@ -77,7 +77,7 @@ const configs: (Configuration | DevelopmentConfiguration)[] = [ * production */ merge(commonConfig, { - devtool: 'source-map', + devtool: false, mode: 'production', From 306229fdd73eb6de265f375e230f59e18b1250e7 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 11:22:36 +0000 Subject: [PATCH 05/10] ci: move dependency install to composite action --- .github/actions/setup.yml | 21 ++++++ .../clean_up_pull_request_checks.yml | 2 +- .github/workflows/pull_request_checks.yml | 68 ++----------------- 3 files changed, 27 insertions(+), 64 deletions(-) create mode 100644 .github/actions/setup.yml diff --git a/.github/actions/setup.yml b/.github/actions/setup.yml new file mode 100644 index 00000000..eaa339dc --- /dev/null +++ b/.github/actions/setup.yml @@ -0,0 +1,21 @@ +name: "Setup" + +description: "Checks if the dependencies have been cached with the hash of the yarn.lock file." + +runs: + using: "composite" + steps: + - name: "๐Ÿ”ง Setup" + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + cache: 'yarn' + - name: "๐Ÿ’พ Cache dependencies" + uses: actions/cache@v3 + id: cache-dependencies + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} + - name: "๐Ÿ“ฆ Install" + if: steps.cache-dependencies.outputs.cache-hit != 'true' + run: yarn install --ignore-scripts diff --git a/.github/workflows/clean_up_pull_request_checks.yml b/.github/workflows/clean_up_pull_request_checks.yml index 53abe545..fedbae3c 100644 --- a/.github/workflows/clean_up_pull_request_checks.yml +++ b/.github/workflows/clean_up_pull_request_checks.yml @@ -2,7 +2,7 @@ name: Clean Up Pull Request Checks on: workflow_run: - workflows: [Pull Request Checks] + workflows: ["Pull Request Checks"] types: - completed diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 83ac5a24..bb081943 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -1,51 +1,17 @@ -name: Pull Request Checks +name: "Pull Request Checks" on: pull_request: jobs: - install: - name: "Install" - runs-on: ubuntu-latest - steps: - - name: "๐Ÿ›Ž Checkout" - uses: actions/checkout@v3 - - name: "๐Ÿ”ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - cache: 'yarn' - - name: "๐Ÿ’พ Cache dependencies" - uses: actions/cache@v3 - id: cache-dependencies - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} - - name: "๐Ÿ“ฆ Install" - if: steps.cache-dependencies.outputs.cache-hit != 'true' - run: yarn install --ignore-scripts - - ## - # needs install - ## - lint: name: "Lint" - needs: install runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - cache: 'yarn' - - name: "๐Ÿ’พ Cache dependencies" - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} + uses: ./.github/actions/setup.yml - name: "๐Ÿ‘• Lint" run: yarn lint @@ -57,15 +23,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - cache: 'yarn' - - name: "๐Ÿ’พ Cache dependencies" - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} + uses: ./.github/actions/setup.yml - name: "๐Ÿ—๏ธ Build" run: yarn build - name: "๐Ÿ—œ๏ธ Zip build" @@ -84,15 +42,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - cache: 'yarn' - - name: "๐Ÿ’พ Cache dependencies" - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} + uses: ./.github/actions/setup.yml - name: "๐Ÿงช Test" run: yarn test @@ -108,15 +58,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: actions/setup-node@v3 - with: - node-version: 'lts/*' - cache: 'yarn' - - name: "๐Ÿ’พ Cache dependencies" - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }} + uses: ./.github/actions/setup.yml - name: "๐Ÿ“ฅ Download build" uses: actions/download-artifact@v3 with: From e4e1d3e487a7701d1fd03792bbb384a78e6efa52 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 11:23:31 +0000 Subject: [PATCH 06/10] chore: squash --- .github/workflows/pull_request_checks.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index bb081943..3d94b726 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -17,7 +17,6 @@ jobs: build: name: "Build" - needs: install runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" @@ -36,7 +35,6 @@ jobs: test: name: "Test" - needs: install runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" @@ -52,7 +50,7 @@ jobs: validate_firefox: name: "Validate Firefox" - needs: [install, build] + needs: build runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" From f15164914d50014369f4b36b80df101c02e6dc33 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 11:25:05 +0000 Subject: [PATCH 07/10] chore: squash --- .github/actions/{setup.yml => setup/action.yml} | 0 .github/workflows/pull_request_checks.yml | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename .github/actions/{setup.yml => setup/action.yml} (100%) diff --git a/.github/actions/setup.yml b/.github/actions/setup/action.yml similarity index 100% rename from .github/actions/setup.yml rename to .github/actions/setup/action.yml diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 3d94b726..46efce8a 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -11,7 +11,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup.yml + uses: ./.github/actions/setup - name: "๐Ÿ‘• Lint" run: yarn lint @@ -22,7 +22,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup.yml + uses: ./.github/actions/setup - name: "๐Ÿ—๏ธ Build" run: yarn build - name: "๐Ÿ—œ๏ธ Zip build" @@ -40,7 +40,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup.yml + uses: ./.github/actions/setup - name: "๐Ÿงช Test" run: yarn test @@ -56,7 +56,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup.yml + uses: ./.github/actions/setup - name: "๐Ÿ“ฅ Download build" uses: actions/download-artifact@v3 with: From 53fbd81cd0cec599c37c04e90c362789237e5429 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 11:27:25 +0000 Subject: [PATCH 08/10] chore: squash --- .github/actions/setup/action.yml | 1 + .github/workflows/pull_request_checks.yml | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index eaa339dc..9627e323 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -19,3 +19,4 @@ runs: - name: "๐Ÿ“ฆ Install" if: steps.cache-dependencies.outputs.cache-hit != 'true' run: yarn install --ignore-scripts + shell: bash diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 46efce8a..8ebbd715 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -4,8 +4,22 @@ on: pull_request: jobs: + install: + name: "Install" + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ›Ž Checkout" + uses: actions/checkout@v3 + - name: "๐Ÿ”ง Setup" + uses: ./.github/actions/setup + + ## + # needs install + ## + lint: name: "Lint" + needs: install runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" @@ -17,6 +31,7 @@ jobs: build: name: "Build" + needs: install runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" @@ -35,6 +50,7 @@ jobs: test: name: "Test" + needs: install runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" @@ -50,7 +66,7 @@ jobs: validate_firefox: name: "Validate Firefox" - needs: build + needs: [install, build] runs-on: ubuntu-latest steps: - name: "๐Ÿ›Ž Checkout" From 89df4138ad6d4eee852753dd55e5202df3f20d79 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 11:31:28 +0000 Subject: [PATCH 09/10] ci: rename setup to use dependecies --- .github/actions/{setup => use-dependencies}/action.yml | 2 +- .github/workflows/pull_request_checks.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename .github/actions/{setup => use-dependencies}/action.yml (96%) diff --git a/.github/actions/setup/action.yml b/.github/actions/use-dependencies/action.yml similarity index 96% rename from .github/actions/setup/action.yml rename to .github/actions/use-dependencies/action.yml index 9627e323..318ce7b5 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/use-dependencies/action.yml @@ -1,4 +1,4 @@ -name: "Setup" +name: "Use Dependencies" description: "Checks if the dependencies have been cached with the hash of the yarn.lock file." diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 8ebbd715..02d09a3f 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -11,7 +11,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup + uses: ./.github/actions/use-dependencies ## # needs install @@ -25,7 +25,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup + uses: ./.github/actions/use-dependencies - name: "๐Ÿ‘• Lint" run: yarn lint @@ -37,7 +37,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup + uses: ./.github/actions/use-dependencies - name: "๐Ÿ—๏ธ Build" run: yarn build - name: "๐Ÿ—œ๏ธ Zip build" @@ -56,7 +56,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup + uses: ./.github/actions/use-dependencies - name: "๐Ÿงช Test" run: yarn test @@ -72,7 +72,7 @@ jobs: - name: "๐Ÿ›Ž Checkout" uses: actions/checkout@v3 - name: "๐Ÿ”ง Setup" - uses: ./.github/actions/setup + uses: ./.github/actions/use-dependencies - name: "๐Ÿ“ฅ Download build" uses: actions/download-artifact@v3 with: From e8b5a99acea060a05747e0e38bdcb01d46ffcba3 Mon Sep 17 00:00:00 2001 From: Kieran O'Neill Date: Fri, 17 Nov 2023 11:40:29 +0000 Subject: [PATCH 10/10] ci: remove artifacts within workflow --- .../clean_up_pull_request_checks.yml | 20 ------------------- .github/workflows/pull_request_checks.yml | 18 ++++++++++++++++- 2 files changed, 17 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/clean_up_pull_request_checks.yml diff --git a/.github/workflows/clean_up_pull_request_checks.yml b/.github/workflows/clean_up_pull_request_checks.yml deleted file mode 100644 index fedbae3c..00000000 --- a/.github/workflows/clean_up_pull_request_checks.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Clean Up Pull Request Checks - -on: - workflow_run: - workflows: ["Pull Request Checks"] - types: - - completed - - -jobs: - delete_artifacts: - name: "Delete Artifacts" - runs-on: ubuntu-latest - steps: - - name: "๐Ÿ—‘๏ธ Delete" - uses: geekyeggo/delete-artifact@v2 - with: - failOnError: false - name: | - build diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 02d09a3f..a61be18d 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -61,7 +61,7 @@ jobs: run: yarn test ## - # needs install/build + # needs [install, build] ## validate_firefox: @@ -81,3 +81,19 @@ jobs: run: unzip build.zip - name: "โœ… Validate" run: yarn validate:firefox + + ## + # needs validate_firefox + ## + + clean_up: + name: "Clean Up" + needs: validate_firefox + runs-on: ubuntu-latest + steps: + - name: "๐Ÿ—‘๏ธ Delete artifacts" + uses: geekyeggo/delete-artifact@v2 + with: + failOnError: false + name: | + build