├── .github └── workflows │ ├── authentication.yml │ ├── container-name.yml │ ├── custom-image.yml │ ├── custom-port.yml │ ├── fallback-to-latest-version.yml │ └── main.yml ├── CHANGELOG.md ├── Dockerfile ├── LICENSE ├── README.md ├── action.yml ├── docs └── new-release.md └── start-redis.sh /.github/workflows/authentication.yml: -------------------------------------------------------------------------------- 1 | name: Start Redis server with Authentication 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | redis-action: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | redis-version: [5, 6, 7] 11 | 12 | name: Start Redis Server v${{ matrix.redis-version }} 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Start Redis Server 18 | uses: ./ 19 | with: 20 | redis-version: ${{ matrix.redis-version }} 21 | redis-password: password 22 | -------------------------------------------------------------------------------- /.github/workflows/container-name.yml: -------------------------------------------------------------------------------- 1 | name: Start Redis server with custom container name 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | redis-action: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | redis-version: [5, 6, 7] 11 | 12 | name: Start Redis Server v${{ matrix.redis-version }} 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Start Redis Server 18 | uses: ./ 19 | with: 20 | redis-version: ${{ matrix.redis-version }} 21 | redis-container-name: redis-auth-token-cache 22 | -------------------------------------------------------------------------------- /.github/workflows/custom-image.yml: -------------------------------------------------------------------------------- 1 | name: Start Redis server from a custom image 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | redis-action: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | redis-version: [6.2.4-v4, 6.2.6-v3] 11 | 12 | name: Start Redis Stack Server v${{ matrix.redis-version }} 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Start Redis Stack Server 18 | uses: ./ 19 | with: 20 | redis-image: redis/redis-stack-server 21 | redis-version: ${{ matrix.redis-version }} 22 | -------------------------------------------------------------------------------- /.github/workflows/custom-port.yml: -------------------------------------------------------------------------------- 1 | name: Start Redis server on custom port 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | redis-action: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | redis-version: [5, 6, 7] 11 | 12 | name: Start Redis Server v${{ matrix.redis-version }} 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Start Redis Server 18 | uses: ./ 19 | with: 20 | redis-version: ${{ matrix.redis-version }} 21 | redis-port: 12345 22 | -------------------------------------------------------------------------------- /.github/workflows/fallback-to-latest-version.yml: -------------------------------------------------------------------------------- 1 | name: Start Redis server with latest version 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | redis-action: 7 | runs-on: ubuntu-latest 8 | 9 | name: Start Redis Server with latest Redis version 10 | steps: 11 | - name: Checkout 12 | uses: actions/checkout@v4 13 | 14 | - name: Start Redis Server 15 | uses: ./ 16 | with: 17 | redis-version: ${{ matrix.redis-versions }} 18 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Start Redis server 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | redis-action: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | redis-version: [5, 6, 7] 11 | 12 | name: Start Redis Server v${{ matrix.redis-version }} 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Start Redis Server 18 | uses: ./ 19 | with: 20 | redis-version: ${{ matrix.redis-version }} 21 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [1.8.0](https://github.com/supercharge/redis-github-action/compare/v1.7.0...v1.8.0) - 2023-12-12 4 | 5 | ### Added 6 | - add Redis 7 to testing 7 | 8 | ### Updated 9 | - bump GitHub Actions service `actions/checkout` to version `v4` 10 | 11 | ### Removed 12 | - remove Redis 4 from testing 13 | 14 | ### Fixed 15 | - fix position of adding the Docker `--rm` flag to be added before starting the Redis server, because the `--rm` flag would be passed to the Redis server instead of Docker 16 | 17 | 18 | ## [1.7.0](https://github.com/supercharge/redis-github-action/compare/v1.6.0...v1.7.0) - 2023-09-04 19 | 20 | ### Added 21 | - add `redis-password` for start Redis with Authentication 22 | 23 | ### Updated 24 | - update versions in README 25 | 26 | 27 | ## [1.6.0](https://github.com/supercharge/redis-github-action/compare/v1.5.0...v1.6.0) - 2023-07-27 28 | 29 | ### Added 30 | - add `redis-remove-container` option adding the `--rm` flag to the resulting `docker run … --rm` command which starts the Redis container 31 | 32 | ### Updated 33 | - update versions in README 34 | 35 | 36 | ## [1.5.0](https://github.com/supercharge/redis-github-action/compare/v1.4.0...v1.5.0) - 2023-02-14 37 | 38 | ### Added 39 | - use a custom Redis image: useful if you need to run an alternative Redis image like Redis Stack 40 | - uses `redis` as the default Docker image 41 | 42 | 43 | ## [1.4.0](https://github.com/supercharge/redis-github-action/compare/v1.3.0...v1.4.0) - 2021-12-28 44 | 45 | ### Added 46 | - use a custom name for the Redis container: this is helpful when starting multiple Redis instances 47 | 48 | 49 | ## [1.3.0](https://github.com/supercharge/redis-github-action/compare/v1.2.0...v1.3.0) - 2021-12-27 50 | 51 | ### Added 52 | - start Redis instance on a custom port 53 | 54 | 55 | ## [1.2.0](https://github.com/supercharge/redis-github-action/compare/v1.1.0...v1.2.0) - 2021-01-08 56 | 57 | ### Added 58 | - version check before starting the Redis container: fall back to `latest` when no Redis version is defined for the workflow 59 | - run tests on pull requests 60 | 61 | ### Updated 62 | - refined wording in Readme 63 | 64 | 65 | ## [1.1.0](https://github.com/supercharge/redis-github-action/compare/v1.0.0...v1.1.0) - 2019-12-18 66 | 67 | ### Updated 68 | - switched from a Node.js workflow to a Docker-based workflow 69 | - reduces noise in the repo by removing the Node.js dependencies and only relying on a shell script 70 | 71 | 72 | ## 1.0.0 - 2019-12-17 73 | 74 | ### Added 75 | - `1.0.0` release 🚀 🎉 76 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM docker:stable 2 | COPY start-redis.sh /start-redis.sh 3 | RUN chmod +x /start-redis.sh 4 | ENTRYPOINT ["/start-redis.sh"] -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 The Supercharge Node.js Framework 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
8 |
11 | Start a Redis server in your GitHub Actions. 12 |
13 |15 | Usage 16 |
17 |20 | Follow @marcuspoehls and @superchargejs for updates! 21 |
22 |