forked from ueckoken/plarail2021-soft
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from ueckoken/main
- Loading branch information
Showing
178 changed files
with
6,938 additions
and
2,051 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
internal: | ||
- backend/internal/**/* | ||
- any: | ||
- backend/internal/** | ||
- "!backend/internal/spec/**" | ||
external: | ||
- backend/external/**/* | ||
frontend: | ||
- frontend/**/* | ||
- any: | ||
- backend/external/** | ||
- "!backend/external/spec/**" | ||
positioning: | ||
- any: | ||
- "backend/positioning/**" | ||
- "!backend/positioning/spec/**" | ||
speed: | ||
- any: | ||
- "backend/speed/**" | ||
- "!backend/speed/spec/**" | ||
ats: | ||
- any: | ||
- "backend/ats/**" | ||
- "!backend/ats/spec/**" | ||
multicaster: | ||
- any: | ||
- "backend/multicaster/**" | ||
momo_sender: | ||
- any: | ||
- "frontend/momo_sender/**" | ||
skyway_receiver: | ||
- any: | ||
- "frontend/skyway_receiver/**" | ||
site: | ||
- any: | ||
- "frontend/site/**" | ||
ci-cd: | ||
- .github/**/* | ||
- manifests/**/* | ||
documentation: | ||
- README.md | ||
- '**/docs/**/*.md' | ||
- "**/docs/**/*.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,10 @@ jobs: | |
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node in ats | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
|
@@ -27,31 +30,24 @@ jobs: | |
echo "$RUNNER_TEMP/protoc/bin" >> $GITHUB_PATH | ||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
- name: run protoc | ||
- name: prepare protoc | ||
run: |- | ||
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.19.0/protoc-3.19.0-linux-x86_64.zip -o $RUNNER_TEMP/protoc.zip | ||
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.20.3/protoc-3.20.3-linux-x86_64.zip -o $RUNNER_TEMP/protoc.zip | ||
unzip -d $RUNNER_TEMP/protoc $RUNNER_TEMP/protoc.zip | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
go install google.golang.org/grpc/cmd/[email protected] | ||
mkdir -p $GITHUB_WORKSPACE/backend/internal/spec | ||
mkdir -p $GITHUB_WORKSPACE/backend/external/spec | ||
cd $GITHUB_WORKSPACE/backend/ | ||
mkdir -p $GITHUB_WORKSPACE/backend/ats/spec | ||
- name: prepare node protoc | ||
run: |- | ||
yarn install --frozen-lockfile | ||
working-directory: backend/ats | ||
- name: gen proto | ||
run: |- | ||
make pb | ||
- name: Count changes | ||
id: changes | ||
run: | | ||
# https://zenn.dev/snowcait/articles/18c9137f49e378#%E6%96%B9%E6%B3%95-2-%3A-jobs.%3Cjob_id%3E.steps.if | ||
git add -N . # 新規ファイルを含める | ||
echo "::set-output name=count::$(git diff --name-only | wc -l)" | ||
- name: commit & push | ||
run: | | ||
git config --global user.name 'GITHUB ACTION BOT' | ||
git config --global user.email '[email protected]' | ||
git add . | ||
git commit -m "Update" | ||
git push | ||
if: steps.changes.outputs.count > 0 | ||
working-directory: backend/ | ||
- name: Add & Commit | ||
uses: EndBug/[email protected] | ||
with: | ||
default_author: github_actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
paths: | ||
- "frontend/**/*" | ||
- "backend/multicaster/*" | ||
branches-ignore: | ||
- "main" | ||
- "deployment" | ||
|
@@ -13,15 +14,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "frontend/" | ||
working-directory: "frontend/site" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ./frontend/.nvmrc | ||
node-version-file: ./frontend/site/.nvmrc | ||
cache: yarn | ||
cache-dependency-path: ./frontend/yarn.lock | ||
cache-dependency-path: ./frontend/site/yarn.lock | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn fmt | ||
- name: Count changes | ||
|
@@ -38,19 +39,19 @@ jobs: | |
git push | ||
if: steps.changes.outputs.count > 0 | ||
|
||
prettier-videocast: | ||
prettier-momo-sender: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "frontend/videoCast" | ||
working-directory: "frontend/momo_sender" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ./frontend/videoCast/.nvmrc | ||
node-version-file: ./frontend/momo_sender/.nvmrc | ||
cache: npm | ||
cache-dependency-path: ./frontend/videoCast/package-lock.json | ||
cache-dependency-path: ./frontend/momo_sender/package-lock.json | ||
- run: npm ci | ||
- run: npm run fmt | ||
- uses: EndBug/add-and-commit@v9 | ||
|
@@ -59,19 +60,40 @@ jobs: | |
author_email: [email protected] | ||
message: format by prettier | ||
|
||
black-videoCast: | ||
prettier-skyway-receiver: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "frontend/videoCast" | ||
working-directory: "frontend/skyway_receiver" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: ./frontend/skyway_receiver/.nvmrc | ||
cache: npm | ||
cache-dependency-path: ./frontend/skyway_receiver/package-lock.json | ||
- run: npm ci | ||
- run: npm run fmt | ||
- uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: format BOT | ||
author_email: [email protected] | ||
message: format by prettier | ||
|
||
black-multicaster: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "backend/multicaster" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
python-version-file: ./backend/multicaster/.python-version | ||
cache: pip | ||
cache-dependency-path: ./frontend/videoCast/requirements-dev.txt | ||
cache-dependency-path: ./backend/multicaster/requirements-dev.txt | ||
- run: pip install -r requirements-dev.txt | ||
- run: black . | ||
- uses: EndBug/add-and-commit@v9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Multicaster test | ||
|
||
defaults: | ||
run: | ||
working-directory: ./backend/multicaster | ||
|
||
on: push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version-file: ./backend/multicaster/.python-version | ||
cache: pip | ||
cache-dependency-path: ./backend/multicaster/requirements-dev.txt | ||
- run: pip install -r requirements-dev.txt | ||
- name: Type check | ||
run: mypy . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: positioning build and test | ||
|
||
defaults: | ||
run: | ||
working-directory: ./backend/positioning | ||
|
||
on: push | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: ./backend/positioning/go.mod | ||
cache: true | ||
cache-dependency-path: ./backend/positioning/go.sum | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.50 | ||
working-directory: ./backend/positioning/ | ||
- name: Build Go binary | ||
run: |- | ||
make build | ||
- name: Run Go Test | ||
run: |- | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.