Skip to content

Commit

Permalink
Misc CI and build improvements (#218)
Browse files Browse the repository at this point in the history
* Fix MongoDB CI installs

* Remove release drafter

* Drop dependabot and add renovate

* Fix CI shield
  • Loading branch information
Turnerj committed Apr 8, 2023
1 parent 3465738 commit 37eb370
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 64 deletions.
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/release-drafter.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>TurnerSoftware/.github:renovate-shared"
]
}
39 changes: 34 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,45 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
mongodb: ['6.0']
include:
- os: ubuntu-latest
ubuntu: 'jammy'
steps:
- name: Configure Windows
# Configure Redis
- name: Configure Redis (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install redis-server
- name: Configure Redis (Windows)
if: matrix.os == 'windows-latest'
run: choco install Memurai-Developer
- name: Configure Ubuntu
- name: Configure Redis (MacOS)
if: matrix.os == 'macOS-latest'
run: brew install redis && brew services start redis

# Configure MongoDB
- name: Configure MongoDB (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo systemctl start mongod && sudo apt-get install redis-server
- name: Configure MacOS
run: |
wget -qO - https://www.mongodb.org/static/pgp/server-${{matrix.mongodb}}.asc | gpg --dearmor | sudo tee /usr/share/keyrings/mongodb.gpg > /dev/null
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu ${{matrix.ubuntu}}/mongodb-org/${{matrix.mongodb}} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-${{matrix.mongodb}}.list
sudo apt update
sudo apt install mongodb-org
sudo systemctl start mongod
- name: Configure MongoDB (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: |
choco uninstall mongodb mongodb.install
$latestPackageVersion = Get-LatestChocoPackageVersion -TargetVersion ${{matrix.mongodb}} -PackageName "mongodb.install"
choco install mongodb.portable --version=$latestPackageVersion
- name: Configure MongoDB (MacOS)
if: matrix.os == 'macOS-latest'
run: brew services start mongodb-community && brew install redis && brew services start redis
run: |
brew tap mongodb/brew
brew update
brew install mongodb-community@${{matrix.mongodb}}
brew services start mongodb-community@${{matrix.mongodb}}
- name: Checkout
uses: actions/checkout@v2
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/release-drafter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Cache Tower
An efficient multi-layered caching system for .NET

![Build](https://img.shields.io/github/workflow/status/TurnerSoftware/CacheTower/Build)
![Build](https://img.shields.io/github/actions/workflow/status/TurnerSoftware/CacheTower/build.yml?branch=main)
[![Codecov](https://img.shields.io/codecov/c/github/turnersoftware/cachetower/main.svg)](https://codecov.io/gh/TurnerSoftware/CacheTower)
[![NuGet](https://img.shields.io/nuget/v/CacheTower.svg)](https://www.nuget.org/packages/CacheTower/)
</div>
Expand Down

0 comments on commit 37eb370

Please sign in to comment.