Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 55 additions & 55 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
# ---
# #################################
# #################################
# ## Super Linter GitHub Actions ##
# #################################
# #################################
# name: Lint Code Base
---
#################################
#################################
## Super Linter GitHub Actions ##
#################################
#################################
name: Lint Code Base

# #############################
# # Start the job on all push #
# #############################
# on:
# push:
# branches-ignore: [main]
# # Remove the line above to run when pushing to master
#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore: [main]
# Remove the line above to run when pushing to master

# ###############
# # Set the Job #
# ###############
# jobs:
# build:
# # Name the Job
# name: Lint Code Base
# # Set the agent to run on
# runs-on: ubuntu-latest
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest

# ############################################
# # Grant status permission for MULTI_STATUS #
# ############################################
# permissions:
# contents: read
# packages: read
# statuses: write
############################################
# Grant status permission for MULTI_STATUS #
############################################
permissions:
contents: read
packages: read
statuses: write

# ##################
# # Load all steps #
# ##################
# steps:
# ##########################
# # Checkout the code base #
# ##########################
# - name: Checkout Code
# uses: actions/checkout@v3
# with:
# # Full git history is needed to get a proper
# # list of changed files within `super-linter`
# fetch-depth: 0
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

# ################################
# # Run Linter against code base #
# ################################
# - name: Lint Code Base
# uses: super-linter/super-linter@v5
# env:
# VALIDATE_ALL_CODEBASE: false
# DEFAULT_BRANCH: main
# VALIDATE_EDITORCONFIG: true
# LINTER_RULES_PATH: /
# EDITORCONFIG_FILE_NAME: .editorconfig
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
VALIDATE_EDITORCONFIG: true
LINTER_RULES_PATH: /
EDITORCONFIG_FILE_NAME: .editorconfig
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 15 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

**MIT License © 2026 Behdad Kardgar**

[![CI](https://github.com/behdad088/EshopMicroservices/actions/workflows/ci.yml/badge.svg)](https://github.com/behdad088/EshopMicroservices/actions/workflows/ci.yml)
[![CodeQL](https://github.com/behdad088/EshopMicroservices/actions/workflows/codeql.yml/badge.svg)](https://github.com/behdad088/EshopMicroservices/actions/workflows/codeql.yml)
[![Markdown link check](https://github.com/behdad088/EshopMicroservices/actions/workflows/markdown-link-check.yml/badge.svg)](https://github.com/behdad088/EshopMicroservices/actions/workflows/markdown-link-check.yml)
[![.github/workflows/linter.yml](https://github.com/behdad088/EshopMicroservices/actions/workflows/linter.yml/badge.svg)](https://github.com/behdad088/EshopMicroservices/actions/workflows/linter.yml)
---

## Table of Contents
Expand Down Expand Up @@ -413,28 +417,28 @@ E2E tests simulate real user interactions with the application to verify that co
you can run the E2E tests with the following command:

1. Build the test project
```bash
```bash
dotnet build src/Services/E2ETests/E2ETests.csproj
```
```
2. Install Playwright browsers (one-time)
```bash
pwsh src/Services/E2ETests/bin/Debug/net10.0/playwright.ps1 install chromium
```
NOTE: If you don't have PowerShell: brew install powershell
```bash
pwsh src/Services/E2ETests/bin/Debug/net10.0/playwright.ps1 install chromium
```
NOTE: If you don't have PowerShell: brew install powershell


3. Start the stack
```bash
cd src
docker compose -f docker-compose.yml -f docker-compose.e2e.yml up --build -d
```bash
cd src
docker compose -f docker-compose.yml -f docker-compose.e2e.yml up --build -d
```
4. Wait for services to be ready (or just alternatively just wait ~60s)
```bash
bash scripts/wait-for-services.sh
bash scripts/wait-for-services.sh
```
5. Run the tests
```bash
dotnet test src/Services/E2ETests/E2ETests.csproj
dotnet test src/Services/E2ETests/E2ETests.csproj
```
6. Tear down when done

Expand Down
Loading