Skip to content

Commit 09555f8

Browse files
authored
Merge pull request #161 from salesforcecli/ew/swc
Add SWC and sync files
2 parents d56a3d4 + eca512d commit 09555f8

File tree

5 files changed

+85
-9
lines changed

5 files changed

+85
-9
lines changed

.github/workflows/failureNotifications.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ jobs:
2121
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
2222
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
2323
with:
24+
# Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D
25+
# Only copy over the "blocks" array to the Block Kit Builder
2426
payload: |
2527
{
26-
"text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}",
28+
"text": "Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}",
2729
"blocks": [
2830
{
2931
"type": "header",
3032
"text": {
3133
"type": "plain_text",
32-
"text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}"
34+
"text": ":bh-alert: Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }} :bh-alert:"
3335
}
3436
},
3537
{
3638
"type": "section",
3739
"text": {
3840
"type": "mrkdwn",
39-
"text": "repo: ${{ github.event.workflow_run.repository.html_url }}\nworkflow name:${{ github.event.workflow_run.name }}\njob url: ${{ github.event.workflow_run.html_url }}"
41+
"text": "*Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}"
4042
}
4143
}
4244
]

.github/workflows/test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ env:
88
ONEGP_TESTKIT_AUTH_URL: ${{secrets.ONEGP_TESTKIT_AUTH_URL}}
99

1010
jobs:
11-
unit-tests:
12-
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
11+
yarn-lockfile-check:
12+
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
13+
# Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs
14+
linux-unit-tests:
15+
needs: yarn-lockfile-check
16+
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
17+
windows-unit-tests:
18+
needs: linux-unit-tests
19+
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
1320
nuts:
14-
needs: unit-tests
21+
needs: linux-unit-tests
1522
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
1623
secrets: inherit
1724
strategy:

bin/dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const project = path.join(__dirname, '..', 'tsconfig.json');
88
// In dev mode -> use ts-node and dev plugins
99
process.env.NODE_ENV = 'development';
1010

11-
require('ts-node').register({ project });
12-
// oclif.settings.tsconfigPath = project;
11+
// Enable SWC for faster typescript compiling
12+
require('ts-node').register({ project, swc: true });
1313

1414
// In dev mode, always show stack traces
1515
const g = (global.oclif = global.oclif || {});

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@salesforce/prettier-config": "^0.0.2",
2727
"@salesforce/ts-sinon": "1.4.1",
2828
"@salesforce/ts-types": "^1.5.20",
29+
"@swc/core": "^1.3.16",
2930
"@typescript-eslint/eslint-plugin": "^5.33.0",
3031
"@typescript-eslint/parser": "^5.33.0",
3132
"chai": "^4.3.6",
@@ -181,4 +182,4 @@
181182
"publishConfig": {
182183
"access": "public"
183184
}
184-
}
185+
}

yarn.lock

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,72 @@
13291329
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz#5981a8db18b56ba38ef0efb7d995b12aa7b51918"
13301330
integrity sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==
13311331

1332+
1333+
version "1.3.16"
1334+
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.16.tgz#5d7d30dde35e2ca87ee67e12cbaf6613757048a7"
1335+
integrity sha512-tVhkffyl0UQELkz4tfIcBw4PahRTmeP72Yds1v2bvVpeH35i9SIYCsE9z6nH2uG5CwD+3OqvHZ47PNg3Shq+bw==
1336+
1337+
1338+
version "1.3.16"
1339+
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.3.16.tgz#a9e9ccf14be68591dc4e85829e5151f774bc9edf"
1340+
integrity sha512-5wFflU0G31TlTpgpGEmUxRvSVgRnMPGdbY/dCaGri8xIlE7jVm5lf9mGhdAAKtG+Y0gxmMtNzi2NLicOAfEKbw==
1341+
1342+
1343+
version "1.3.16"
1344+
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.16.tgz#662354d78c3ca7444686b1d177d35dc8bc605eb5"
1345+
integrity sha512-KxTs9/Qo45MazfVywsol+OQIUTutGSPY1GbmnfVAhYqrLDt0C21YnpV9+9tjvGNys77F2QdoZGOMJ+fBvr7AJw==
1346+
1347+
1348+
version "1.3.16"
1349+
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.16.tgz#09490c8eecc3e5fc23787d879102cf3c172d3cf7"
1350+
integrity sha512-K0F8KVZzHpPsiL3+x3XZBAlECnLn5+BsAa995KUmQ4ALMkOGfkXRVrqkPEpxOTMyjNMyQgIbo261gk7o13+ONg==
1351+
1352+
1353+
version "1.3.16"
1354+
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.16.tgz#c80a074e10ef364e231eb1cb909e31fc4c3c86b4"
1355+
integrity sha512-tBZtiS2YmAgHNS6TxxUGc1Tn8HqL8XT3EbmyfewmJf8ALE5RcP12tMuXGJJr/9ac+QmwWaFMnXsmfu3hzdDdkQ==
1356+
1357+
1358+
version "1.3.16"
1359+
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.16.tgz#541791237e5660730b566cf2ca3fed0bceccce80"
1360+
integrity sha512-G/opqijVDalDZ7XfQYFhMRK1o74y5ZMP0SAOAajZQUiYBjAYWphpIbPLGoM3g3sK0CA2khA/P+l9kjV7VSvgyA==
1361+
1362+
1363+
version "1.3.16"
1364+
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.16.tgz#fcd5706fb7b2e0d013b0dae376d8cd0b85f64560"
1365+
integrity sha512-eedKXdDV1SFMZ20lETf4Qz0zc+yYzsQ7pqQzT9qNQwh3fo1u/iPx55Aq9MO0CEN+w579WRwwANtSSsuT3yr0tA==
1366+
1367+
1368+
version "1.3.16"
1369+
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.16.tgz#83fce6117453d2abecf7e1c94f85b51af78c40d3"
1370+
integrity sha512-7mBA6aCtBWKQJ5teL+v8wHB4ShNCLQslzu5lso7fUH7mNViMl013X6HPV1umQLIM3f2tC+jMhSmtosxrRNiGDQ==
1371+
1372+
1373+
version "1.3.16"
1374+
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.16.tgz#dd47e4c3f3adb062d55e277ec5d4836d8552e285"
1375+
integrity sha512-if3fwUYrwmskEM9QyYdg4edx1dIXrUYvolszAxfMyUq1GqezkK5PmIO5IAazSZOk8QHaUIA0wcTNKkf8sVyLAw==
1376+
1377+
1378+
version "1.3.16"
1379+
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.16.tgz#d4a2b2f11aaeb96026b4f078278ea17f279208b9"
1380+
integrity sha512-EaXXW0M4EoodsH1ftEaPzixF5nZYKyXk5Qnzqq6hDSOfYzoUOiJ8nBXTHF6xqDHIPVRS1OUDzBujhHsGhQcuPw==
1381+
1382+
"@swc/core@^1.3.16":
1383+
version "1.3.16"
1384+
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.3.16.tgz#be9b42fe54f3ba73ba6a580f3ae024abcbd45c54"
1385+
integrity sha512-y6xxxampiKWNMGWnEAJktDwk/u9j0SApgJyjgi3LQv+OTtm2LiPS3wtfYnWWXtsuKkL1HCf/H2/NLOwO0WLaPw==
1386+
optionalDependencies:
1387+
"@swc/core-darwin-arm64" "1.3.16"
1388+
"@swc/core-darwin-x64" "1.3.16"
1389+
"@swc/core-linux-arm-gnueabihf" "1.3.16"
1390+
"@swc/core-linux-arm64-gnu" "1.3.16"
1391+
"@swc/core-linux-arm64-musl" "1.3.16"
1392+
"@swc/core-linux-x64-gnu" "1.3.16"
1393+
"@swc/core-linux-x64-musl" "1.3.16"
1394+
"@swc/core-win32-arm64-msvc" "1.3.16"
1395+
"@swc/core-win32-ia32-msvc" "1.3.16"
1396+
"@swc/core-win32-x64-msvc" "1.3.16"
1397+
13321398
"@szmarczak/http-timer@^4.0.5":
13331399
version "4.0.6"
13341400
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807"

0 commit comments

Comments
 (0)