Chore/terraform 2 #92
Workflow file for this run
This file contains hidden or 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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: Build evently | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Restore dependencies | |
| run: dotnet restore src/Evently.Server/Evently.Server.csproj | |
| - name: Build | |
| run: dotnet build --no-restore src/Evently.Server/Evently.Server.csproj | |
| - name: Run .NET Unit Tests | |
| run: dotnet test tests/Evently.Server.Test/Evently.Server.Test.csproj | |
| - name: Install npm modules | |
| run: cd src/evently.client && pnpm i | |
| - name: Run UI Tests | |
| run: cd src/evently.client && pnpm run test | |
| - name: Test Docker Image | |
| run: docker build --tag=expo-connect/latest --file=src/Evently.Server/Dockerfile . |