-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run tests from oclif plugin repos (#882)
- Loading branch information
1 parent
bc8d87f
commit b7124bf
Showing
4 changed files
with
94 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: false | ||
description: "runs-on property, ex: ubuntu-latest, windows-latest" | ||
type: string | ||
default: "ubuntu-latest" | ||
repo: | ||
required: true | ||
description: "Repository name, ex: 'owner/repo'" | ||
type: string | ||
command: | ||
required: true | ||
description: "Command to run, ex: 'yarn test'" | ||
type: string | ||
other-setup: | ||
required: false | ||
description: "Setup command, ex: 'yarn install'" | ||
type: string | ||
|
||
jobs: | ||
external-test: | ||
name: ${{ inputs.repo }} ${{ inputs.command }} | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- run: yarn build | ||
- run: yarn link | ||
- run: ${{ inputs.other-setup }} | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ inputs.repo }} | ||
ref: main | ||
path: test | ||
- name: Build plugin | ||
working-directory: test | ||
run: | | ||
yarn install --network-timeout 600000 --ignore-scripts | ||
yarn link @oclif/core | ||
yarn build | ||
- name: Run tests in plugin | ||
working-directory: test | ||
run: ${{ inputs.command }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters