fix(deps): update module github.com/go-redis/redis/v7 to v9 - autoclosed #936
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '*.md' | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# Recommended version | |
- go-version: '1.23.x' | |
couchdb-version: '3.3.3' | |
lint: true | |
# More exotic version | |
- go-version: '1.18.x' | |
couchdb-version: '3.2.2' | |
steps: | |
- name: Install CouchDB | |
run: | | |
curl -s https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo cat > /usr/share/keyrings/couchdb-archive-keyring.gpg | |
source /etc/os-release | |
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" | sudo tee /etc/apt/sources.list.d/couchdb.list | |
sudo apt-get update | |
sudo debconf-set-selections <<-EOF | |
couchdb couchdb/mode select standalone | |
couchdb couchdb/mode seen true | |
couchdb couchdb/bindaddress string 127.0.0.1 | |
couchdb couchdb/bindaddress seen true | |
couchdb couchdb/adminpass password password | |
couchdb couchdb/adminpass seen true | |
couchdb couchdb/adminpass_again password password | |
couchdb couchdb/adminpass_again seen true | |
couchdb couchdb/cookie string elmo | |
couchdb couchdb/cookie seen true | |
EOF | |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --allow-remove-essential --allow-change-held-packages couchdb=${{ matrix.couchdb-version }}* | |
echo "COZY_REGISTRY_COUCHDB_USER=admin" >> $GITHUB_ENV | |
echo "COZY_REGISTRY_COUCHDB_PASSWORD=password" >> $GITHUB_ENV | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install | |
run: | | |
git config --global user.email "github@spam.cozycloud.cc" | |
git config --global user.name "github actions" | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
make install | |
- name: Lint | |
if: ${{ matrix.lint }} | |
run: make lint | |
- name: Unit tests | |
run: make tests |