Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 71ee489

Browse files
committed
Merge branch 'main' into money-validator
2 parents f885a8e + dbc75db commit 71ee489

File tree

2 files changed

+44
-2
lines changed

2 files changed

+44
-2
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Set up PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: 8.2
22+
extensions: mysqli
23+
24+
- name: Install Composer dependencies
25+
working-directory: ./code
26+
run: composer install --prefer-dist --no-progress
27+
28+
- name: Copy .env.example to .env
29+
working-directory: ./code
30+
run: cp .env.example .env
31+
32+
- name: Generate app key
33+
working-directory: ./code
34+
run: php artisan key:generate
35+
36+
- name: Run database migrations
37+
working-directory: ./code
38+
run: php artisan migrate --seed
39+
40+
- name: Run tests
41+
working-directory: ./code
42+
run: vendor/bin/phpunit

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Ensure you have Docker and Docker Compose installed on your machine.
1515

1616
1. Clone the repo
1717
```sh
18-
git clone https://github.com/bumblecoder/tech-task.git
19-
cd tech-task
18+
git clone git@github.com:bumblecoder/tech-task-pay.git
19+
cd tech-task-pay
2020
cp code/.env.example code/.env
2121
```
2222
2. Build and start the Docker containers:

0 commit comments

Comments
 (0)