-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (35 loc) · 1.27 KB
/
cache-all.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
# Runs all smoke tests individually to refill caches after a change to how caching works.
name: Cache all (SLOW!)
on: # yamllint disable-line rule:truthy
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
suites:
uses: ./.github/workflows/list-suites.yml
e2e:
runs-on: ubuntu-latest
needs: suites
strategy:
# Running serially since GitHub API doesn't like concurrent requests.
max-parallel: 1
fail-fast: false
# Using a matrix so if 1 fails it can just be retried instead of restarting the whole job.
matrix:
suite: ${{ fromJSON(needs.suites.outputs.suites) }}
steps:
- uses: actions/checkout@v4
- 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
# Not downloading the cache first, this job is to bust the cache for all ecosystems.
- name: Smoke ${{ matrix.suite }}
env:
LOCAL_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./dependabot test -f=tests/smoke-${{ matrix.suite }}.yaml --cache=cache
- uses: actions/upload-artifact@v4
with:
name: cache-${{ matrix.suite }}
path: cache/