Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI並列化 #139

Merged
merged 3 commits into from
Jul 31, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 76 additions & 3 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ on:
- "README.md"

jobs:
program_check:
dummy:
Yamada-Ika marked this conversation as resolved.
Show resolved Hide resolved
name: dummy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

clang-format:
runs-on: ubuntu-latest
needs:
- dummy
steps:
- uses: actions/checkout@v2
- name: compose-build # キャッシュしたいかも
shell: bash
run: make dc-build
Expand All @@ -23,18 +31,83 @@ 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
needs:
- dummy
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
hayashi-ay marked this conversation as resolved.
Show resolved Hide resolved
- 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
needs:
- dummy
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
needs:
- dummy
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
needs:
- dummy
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
needs:
- dummy
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