-
Notifications
You must be signed in to change notification settings - Fork 69
65 lines (64 loc) · 2.74 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: tests
on:
push:
branches-ignore: [main]
workflow_dispatch:
jobs:
yarn-lockfile-check:
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
# 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
linux-unit-tests:
needs: yarn-lockfile-check
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
windows-unit-tests:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
nuts:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
externalProjectGitUrl:
- https://github.com/salesforcecli/plugin-auth
- https://github.com/salesforcecli/plugin-custom-metadata
- https://github.com/salesforcecli/plugin-data
- https://github.com/salesforcecli/plugin-env
- https://github.com/salesforcecli/plugin-limits
- https://github.com/salesforcecli/plugin-org
- https://github.com/salesforcecli/plugin-schema
- https://github.com/salesforcecli/plugin-settings
- https://github.com/salesforcecli/plugin-signups
- https://github.com/salesforcecli/plugin-templates
- https://github.com/salesforcecli/plugin-user
with:
packageName: '@salesforce/core'
externalProjectGitUrl: ${{ matrix.externalProjectGitUrl }}
command: 'yarn test:nuts'
os: ${{ matrix.os }}
useCache: false
preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install'
preExternalBuildCommands: 'shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@salesforce/core'
secrets: inherit
# hidden until we fix source-testkit to better handle jwt
# deployRetrieveNuts:
# needs: unit-tests
# uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
# strategy:
# fail-fast: false
# matrix:
# os: ['windows-latest-16x', 'ubuntu-latest-16x']
# command:
# - yarn test:nuts:deploy:metadata:manifest
# - yarn test:nuts:deploy:metadata:metadata
# - yarn test:nuts:deploy:metadata:source-dir
# - yarn test:nuts:deploy:metadata:test-level
# - yarn test:nuts:static
# with:
# packageName: '@salesforce/core'
# externalProjectGitUrl: 'https://github.com/salesforcecli/plugin-deploy-retrieve'
# preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install'
# command: ${{ matrix.command }}
# os: ${{ matrix.os }}
# secrets: inherit