Skip to content

Fix/category

Fix/category #199

Workflow file for this run

# 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:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]
# important for azure/login
permissions:
id-token: write
contents: read
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 .
validate-tf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Validate Azure CLI can be used
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
az account show
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
- name: Terraform init
run: |
cd deploy/Terraform
terraform init
- name: Terraform validate
run: |
cd deploy/Terraform
terraform validate