Add test workflow for branch with old releases
This commit is contained in:
44
.github/workflows/ci-0.5.yml
vendored
Normal file
44
.github/workflows/ci-0.5.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: CI v0.5
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
fleet_version:
|
||||||
|
- v0.3.9
|
||||||
|
- v0.4.0
|
||||||
|
- v0.5.0
|
||||||
|
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: "release/v0.5"
|
||||||
|
-
|
||||||
|
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
|
||||||
42
.github/workflows/ci-0.6.yml
vendored
Normal file
42
.github/workflows/ci-0.6.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: CI v0.6
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 5 * * *'
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
fleet_version:
|
||||||
|
- "v0.6.0"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: "release/v0.6"
|
||||||
|
-
|
||||||
|
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
|
||||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -4,8 +4,6 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 5 * * *'
|
- cron: '0 5 * * *'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
|
||||||
- '*.md'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -16,11 +14,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
fleet_version:
|
fleet_version:
|
||||||
- v0.3.9
|
- "v0.7.0-AGENT-rc.1"
|
||||||
- v0.4.0
|
|
||||||
- v0.5.0
|
|
||||||
# expected data needs to be updated, since 0.6 supports helm charts in target customizations
|
|
||||||
#- v0.6.0-rc.1
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user