Skip to content

Commit

Permalink
Merge branch 'main' into mdonnalley/esm
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 2, 2023
2 parents 1b08766 + 80f0db1 commit 69f2e81
Show file tree
Hide file tree
Showing 7 changed files with 6,781 additions and 2,173 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/get-signed-from-stampy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: get-signed-installers-from-stampy
on:
workflow_dispatch:
schedule:
- cron: '25 * * * *'
# 2:35 am central time
- cron: '35 7 * * *'

jobs:
get-signed-from-stampy:
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/jit-install-smoke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: jit-install-smoke

on:
workflow_dispatch:
workflow_call:

jobs:
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@v3
with:
name: manifest
path: oclif.manifest.json

get-jit-plugins:
runs-on: ubuntu-latest
outputs:
jit: ${{ steps.plugins.outputs.jit }}
steps:
- uses: actions/checkout@v3
- name: Get JIT plugins
id: plugins
# This was a pain to get working, be weary of changing it...
# For the dynamic matrix to work, you have to have a VERY specific format:
# Output must be multiline (no jq -c), quotes matter, cannot use toJSON on output, etc...
# The dynamic matrix needs to use fromJSON when reading the needs output
# Multiline format: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-a-multiline-string
run: |
{
echo 'jit<<EOF'
jq '.oclif.jitPlugins | keys' package.json
echo EOF
} >> "$GITHUB_OUTPUT"
jit-install:
needs: [manifest, get-jit-plugins]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
jitPlugins: ${{ fromJSON(needs.get-jit-plugins.outputs.jit) }}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
with:
ignore-scripts: true
- run: yarn build
- uses: actions/download-artifact@v3
with:
name: manifest
- name: Install JIT plugin
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
with:
max_attempts: 3
retry_wait_seconds: 60
command: yarn sf-release cli:install:jit:test --jit-plugin ${{matrix.jitPlugins}}
timeout_minutes: 60
35 changes: 3 additions & 32 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,9 @@ jobs:
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

jit-install:
needs: [manifest]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
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-install-smoke:
uses: ./.github/workflows/jit-install-smoke.yml
secrets: inherit

artifacts:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 69f2e81

Please sign in to comment.