Dry run #9
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
# Runs a single ecosystem without cache and does not fill the cache. | |
name: Dry run | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
inputs: | |
git-ref: | |
description: git ref | |
required: true | |
default: main | |
test: | |
description: smoke test to run (e.g. go, go-close-pr, etc) | |
required: true | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
dry_run: | |
runs-on: ubuntu-latest | |
name: Dry run ${{ inputs.test }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.git-ref }} | |
- name: Download CLI | |
run: | | |
gh release download --repo dependabot/cli -p "*linux-amd64.tar.gz" | |
tar xzvf *.tar.gz >/dev/null 2>&1 | |
./dependabot --version | |
# No download first to get a clean cache. | |
- name: Smoke ${{ inputs.package_manager }} | |
env: | |
LOCAL_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./dependabot test -f=tests/smoke-${{ inputs.test }}.yaml --cache=cache | |
# No upload |