From e1426dd68882d13d9462f537c744f98c82629ed9 Mon Sep 17 00:00:00 2001 From: Mario Manno Date: Thu, 9 Jun 2022 11:09:22 +0200 Subject: [PATCH] Add workflow to run test.sh This runs test.sh with a release Fleet CLI. --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a2cfe3a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + schedule: + - cron: '0 5 30 * *' + pull_request: + paths-ignore: + - '*.md' + +env: + FLEET_VERSION: '0.3.9' + +jobs: + test: + runs-on: ubuntu-latest + + 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-${{ env.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/v$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