diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 79cf4ce..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c4057fe --- /dev/null +++ b/.github/workflows/test.yml @@ -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