mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 01:08:41 +00:00
chore(ci): new test workflow
This commit is contained in:
parent
2193962238
commit
a03a5063d7
12
.github/workflows/lint.yml
vendored
12
.github/workflows/lint.yml
vendored
@ -1,12 +0,0 @@
|
||||
on: [push, pull_request]
|
||||
name: Main
|
||||
jobs:
|
||||
php-cs-fixer:
|
||||
name: PHP-CS-Fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: PHP-CS-Fixer
|
||||
uses: docker://oskarstark/php-cs-fixer-ga
|
||||
with:
|
||||
args: --config=./web/.php-cs-fixer.php --diff --dry-run
|
43
.github/workflows/test.yml
vendored
Normal file
43
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: Lint & Test
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
php-cs-fixer:
|
||||
name: PHP-CS-Fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: PHP-CS-Fixer
|
||||
uses: docker://oskarstark/php-cs-fixer-ga
|
||||
with:
|
||||
args: --config=./web/.php-cs-fixer.php --diff --dry-run
|
||||
|
||||
docker-db:
|
||||
name: Build Docker Image (uoj-db)
|
||||
needs: php-cs-fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build Docker Image (uoj-db)
|
||||
run: docker-compose build uoj-db
|
||||
|
||||
docker-judger:
|
||||
name: Build Docker Image (uoj-judger)
|
||||
needs: php-cs-fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build Docker Image
|
||||
run: docker-compose build uoj-judger
|
||||
|
||||
docker-web:
|
||||
name: Build Docker Image (uoj-web)
|
||||
needs: php-cs-fixer
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build Docker Image (uoj-web)
|
||||
run: docker-compose build uoj-web
|
Loading…
Reference in New Issue
Block a user