-
Notifications
You must be signed in to change notification settings - Fork 25
89 lines (79 loc) · 2.35 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: ut and tarballs
on:
pull_request:
types: [opened, reopened, synchronize]
concurrency:
group: ut-tarballs-${{ github.ref }}
cancel-in-progress: true
jobs:
yarn-lockfile-check:
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
ut:
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
secrets: inherit
tarballs:
uses: salesforcecli/github-workflows/.github/workflows/tarballs.yml@main
secrets: inherit
manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- run: yarn install
- run: yarn build
- run: yarn oclif manifest
- uses: actions/upload-artifact@v2
with:
name: manifest
path: oclif.manifest.json
get-jit-plugins:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
JIT=$(jq -c '.oclif.jitPlugins | keys' package.json)
echo "Found JIT plugins:"
echo "$JIT"
echo "jit=$JIT" >> "$GITHUB_OUTPUT"
# echo-jit-plugins:
# needs: get-jit-plugins
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - run: |
# echo "JIT to JSON:"
# echo ${{ toJson(needs.get-jit-plugins.outputs.jit) }}
# echo "JIT from JSON:"
# echo ${{ fromJSON(needs.get-jit-plugins.outputs.jit) }}
jit-install:
needs: [manifest, get-jit-plugins]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
jitPlugins: ['@salesforce/plugin-community', '@salesforce/plugin-custom-metadata']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- run: yarn install
- run: yarn build
- uses: actions/download-artifact@v2
with:
name: manifest
- run: yarn sf-release cli:install:jit:test --jit-plugin ${{matrix.jitPlugins}}
artifacts:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- run: yarn install
- run: npm install -g @salesforce/plugin-release-management
- run: yarn test:deprecation-policy