-
Notifications
You must be signed in to change notification settings - Fork 442
42 lines (38 loc) · 979 Bytes
/
ci.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
name: CI
on:
schedule:
- cron: '0 5 * * *'
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fleet_version:
- "v0.8.1"
- "v0.9.0"
steps:
-
uses: actions/checkout@v3
with:
fetch-depth: 0
-
uses: actions/cache@v3
id: fleet-cli-cache
with:
path: /home/runner/.local/bin
key: ${{ runner.os }}-fleet-cli-${{ matrix.fleet_version }}
-
name: Download CLI
if: steps.fleet-cli-cache.outputs.cache-hit != 'true'
run: |
mkdir -p /home/runner/.local/bin
wget -nv "https://github.com/rancher/fleet/releases/download/${{ matrix.fleet_version }}/fleet-linux-amd64"
mv fleet-linux-amd64 /home/runner/.local/bin/fleet
chmod +x /home/runner/.local/bin/fleet
-
name: Test
run: |
tests/test.sh