Skip to content

Commit 2ddb785

Browse files
committed
🍃 ci: test for unit test pipeline.
1 parent 357c279 commit 2ddb785

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build Docker
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
- name: Build
12+
run: cp -rf docker/Dockerfile . && docker build -t hyperf .
13+
- name: Copy .env
14+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
15+
- name: Install Dependencies
16+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
17+
- name: Run Unit Tests
18+
run: composer test

0 commit comments

Comments
 (0)