Skip to content

Commit 4982b7f

Browse files
committed
Add GitHub Actions CI workflow
1 parent 2f5669a commit 4982b7f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/e2e-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Name of our workflow (will show up in the "Actions" tab)
2+
name: E2E Test Suite
3+
4+
# --- Triggers ---
5+
# This tells GitHub *when* to run this workflow
6+
on:
7+
# Run on every push to the 'main' branch
8+
push:
9+
branches: [ "main" ]
10+
# Also allow running it manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# --- Jobs ---
14+
# A workflow is made of one or more "jobs"
15+
jobs:
16+
build-and-test:
17+
# The type of server to run on (GitHub-hosted)
18+
# 'ubuntu-latest' comes with Docker pre-installed
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
# Step 1: Check out our repository code
23+
- name: Check out repository
24+
uses: actions/checkout@v4
25+
26+
# Step 2: Build and run our Docker containers
27+
# This is the *exact* command we've been using!
28+
- name: Run E2E Tests with Docker Compose
29+
run: docker-compose up --build --abort-on-container-exit
30+
31+
# Step 3: Upload Allure results as an artifact
32+
# This saves the 'allure-results' folder from the server
33+
# so we can download it later.
34+
- name: Upload Allure results
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: allure-results
38+
path: allure-results/

0 commit comments

Comments
 (0)