Skip to content

Commit

Permalink
CI並列化 (#139)
Browse files Browse the repository at this point in the history
* 並列化の実験

* fix/testを並列か

* dummyなくても動くか実験 
  • Loading branch information
katataku authored Jul 31, 2022
1 parent 53b27a1 commit b3731e4
Showing 1 changed file with 58 additions and 3 deletions.
61 changes: 58 additions & 3 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- "README.md"

jobs:
program_check:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -23,18 +23,73 @@ jobs:
- name: clang-format
shell: bash
run: docker compose -f ./docker/webserv/docker-compose.yml exec -T webserv make format
- name: make

cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: compose-build # キャッシュしたいかも
shell: bash
run: docker compose -f ./docker/webserv/docker-compose.yml exec -T webserv make re
run: make dc-build
- name: compose up
shell: bash
run: make dc-up
- name: cpplint
shell: bash
run: docker compose -f ./docker/webserv/docker-compose.yml exec -T webserv make lint

tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: compose-build # キャッシュしたいかも
shell: bash
run: make dc-build
- name: compose up
shell: bash
run: make dc-up
- name: clang-tidy
shell: bash
run: docker compose -f ./docker/webserv/docker-compose.yml exec -T webserv make tidy

make:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: compose-build # キャッシュしたいかも
shell: bash
run: make dc-build
- name: compose up
shell: bash
run: make dc-up
- name: make
shell: bash
run: docker compose -f ./docker/webserv/docker-compose.yml exec -T webserv make re

unit_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: compose-build # キャッシュしたいかも
shell: bash
run: make dc-build
- name: compose up
shell: bash
run: make dc-up
- name: 単体テスト
shell: bash
run: docker compose -f ./docker/webserv/docker-compose.yml exec -T webserv make utest

integration_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: compose-build # キャッシュしたいかも
shell: bash
run: make dc-build
- name: compose up
shell: bash
run: make dc-up
- name: 結合テスト
shell: bash
run: make itest

0 comments on commit b3731e4

Please sign in to comment.