-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (33 loc) · 1.03 KB
/
dry-run.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
# 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