Skip to content

Commit

Permalink
Merge pull request #226 from ueckoken/fix-cmp
Browse files Browse the repository at this point in the history
refactor json2grpc handler
  • Loading branch information
Azuki-bar authored Nov 10, 2022
2 parents 387fe28 + 2920ea3 commit 1ca579c
Show file tree
Hide file tree
Showing 16 changed files with 322 additions and 716 deletions.
217 changes: 217 additions & 0 deletions .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
name: code test

on: push

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run actionlint
shell: bash
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color -shellcheck=
backend-external:
defaults:
run:
working-directory: ./backend/external
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/external/go.mod
cache: true
cache-dependency-path: ./backend/external/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
working-directory: ./backend/external/
- name: Build Go binary
run: |-
make build
- name: Run Go Test
run: |-
make test
backend-internal:
defaults:
run:
working-directory: ./backend/internal
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/internal/go.mod
cache: true
cache-dependency-path: ./backend/internal/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
working-directory: ./backend/internal/
- name: Build Go binary
run: |-
make build
- name: Run Go Test
run: |-
make test
backend-json2grpc:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend/json2grpc

steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: ./backend/json2grpc/go.mod
cache: true
cache-dependency-path: ./backend/json2grpc/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
working-directory: ./backend/json2grpc/
- name: Build Go binary
run: |-
make build
- name: Run Go Test
run: |-
make test
backend-multicaster:
defaults:
run:
working-directory: ./backend/multicaster
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 .

backend-positioning:
defaults:
run:
working-directory: ./backend/positioning
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
frontend-skyway_receiver:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/skyway_receiver
steps:
- 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
- name: dependency-install
run: npm ci
- name: build
run: npm run build
backend-speed:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend/speed
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: ./backend/speed/go.mod
cache: true
cache-dependency-path: ./backend/speed/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
working-directory: ./backend/speed/
- name: Build Go binary
run: |-
make buildGoBin
- name: Run Go Test
run: |-
make test
frontend-sender:
defaults:
run:
working-directory: ./frontend/momo_sender
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ./frontend/momo_sender/.nvmrc
cache: npm
cache-dependency-path: ./frontend/momo_sender/package-lock.json
- name: dependency-install
run: npm ci
- name: build
run: npm run build

frontend-site:
defaults:
run:
working-directory: ./frontend/site
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/frontend/site/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('./frontend/site/**/yarn.lock') }}-${{ hashFiles('./frontend/site/**.[jt]s', './frontend/site/**.[jt]sx') }}
- uses: actions/setup-node@v3
with:
node-version-file: ./frontend/site/.nvmrc
cache: yarn
cache-dependency-path: ./frontend/site/yarn.lock
- name: dependency-install
run: yarn install --frozen-lockfile --immutable
- name: lint
run: yarn lint
- name: build
run: yarn build
32 changes: 0 additions & 32 deletions .github/workflows/test-external.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/test-frontend.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/test-internal.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/test-json2grpc.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/test-multicaster.yml

This file was deleted.

Loading

0 comments on commit 1ca579c

Please sign in to comment.