Update traefik Docker tag to v3 #1040
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
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-auto-operation: | |
defaults: | |
run: | |
working-directory: ./backend/auto_operation | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version-file: backend/auto_operation/.python-version | |
cache: "pip" | |
- name: install libraries | |
run: pip install -r requirements.txt -r requirements.dev.txt | |
- name: Run test | |
run: |- | |
make staticcheck | |
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/ | |
skip-pkg-cache: true | |
- 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/ | |
skip-pkg-cache: true | |
- 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/ | |
skip-pkg-cache: true | |
- 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/ | |
skip-pkg-cache: true | |
- name: Build Go binary | |
run: |- | |
make build | |
- name: Run Go Test | |
run: |- | |
make test | |
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/ | |
skip-pkg-cache: true | |
- name: Build Go binary | |
run: |- | |
make buildGoBin | |
- name: Run Go Test | |
run: |- | |
make test | |
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 |