Skip to content

Commit cf3b628

Browse files
committed
add test automation
1 parent ed5cf81 commit cf3b628

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checkout the repository
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
# Set up PHP
19+
- name: Set up PHP
20+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401
21+
with:
22+
php-version: '8.0' # Match the PHP version in your composer.json
23+
extensions: mbstring, openssl
24+
coverage: none
25+
26+
# Install dependencies
27+
- name: Install dependencies
28+
run: composer install --no-progress --no-suggest --prefer-dist
29+
30+
# Run Codeception tests
31+
- name: Run tests
32+
run: vendor/bin/codecept run Unit

0 commit comments

Comments
 (0)