From 0db4d96140d989886457fa99529cb33959297dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20P=C3=B6hls?= Date: Tue, 28 Dec 2021 07:06:16 +0100 Subject: [PATCH] refine actions --- .github/workflows/container-name.yml | 21 +++++++++++++++++++ .github/workflows/custom-port.yml | 21 +++++++++++++++++++ .../workflows/fallback-to-latest-version.yml | 2 +- .github/workflows/main.yml | 2 +- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/container-name.yml create mode 100644 .github/workflows/custom-port.yml diff --git a/.github/workflows/container-name.yml b/.github/workflows/container-name.yml new file mode 100644 index 0000000..5a0034a --- /dev/null +++ b/.github/workflows/container-name.yml @@ -0,0 +1,21 @@ +name: Start Redis server with custom container name + +on: [push, pull_request] + +jobs: + redis-action: + runs-on: ubuntu-latest + strategy: + matrix: + redis-version: [4, 5, 6] + + name: Start Redis Server v${{ matrix.redis-version }} + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Start Redis Server + uses: ./ + with: + redis-version: ${{ matrix.redis-version }} + redis-container-name: redis-auth-token-cache diff --git a/.github/workflows/custom-port.yml b/.github/workflows/custom-port.yml new file mode 100644 index 0000000..cf4ecef --- /dev/null +++ b/.github/workflows/custom-port.yml @@ -0,0 +1,21 @@ +name: Start Redis server on custom port + +on: [push, pull_request] + +jobs: + redis-action: + runs-on: ubuntu-latest + strategy: + matrix: + redis-version: [4, 5, 6] + + name: Start Redis Server v${{ matrix.redis-version }} + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Start Redis Server + uses: ./ + with: + redis-version: ${{ matrix.redis-version }} + redis-port: 12345 diff --git a/.github/workflows/fallback-to-latest-version.yml b/.github/workflows/fallback-to-latest-version.yml index 1628fd6..9abdfcc 100644 --- a/.github/workflows/fallback-to-latest-version.yml +++ b/.github/workflows/fallback-to-latest-version.yml @@ -1,4 +1,4 @@ -name: Start Redis Server with latest version +name: Start Redis server with latest version on: [push, pull_request] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22d53da..ca458a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Start Redis Server +name: Start Redis server on: [push, pull_request]