bugfix #10
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: .NET Build && Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3.2.0 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libmemcached-dev memcached | |
- name: Start memcached daemons | |
run: | | |
memcached -d -p 11211 | |
memcached -d -p 11212 | |
memcached -d -p 11213 | |
- name: Add memcached host to /etc/hosts | |
run: | | |
echo "127.0.0.1 memcached" | sudo tee -a /etc/hosts | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal |