Re: [#135](https://github.com/supabase-community/supabase-csharp/issu… #9
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: Build and Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
#- name: Add hosts entries | |
# run: | | |
# echo "127.0.0.1 realtime-dev.localhost" | sudo tee -a /etc/hosts | |
# echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts | |
#- name: Initialize Testing Stack | |
# run: docker-compose up -d | |
#- name: Test | |
# run: dotnet test --no-restore |