Skip to content

Commit

Permalink
Merge pull request #110 from YukiOnishi1129/feature/test-batch
Browse files Browse the repository at this point in the history
Feature/test batch
  • Loading branch information
YukiOnishi1129 authored Jun 21, 2024
2 parents ad3bf6b + f442292 commit 7848e44
Show file tree
Hide file tree
Showing 151 changed files with 51,578 additions and 83 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/article_service_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: article_service_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "micro-service/article-service/**"
- ".github/workflows/article_service_pr_check.yml"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.22']

# services:
# postgres:
# image: docker.io/postgres:16-alpine
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: root
# POSTGRES_DB: password
# ports:
# - 5432:5432

defaults:
run:
working-directory: ./micro-service/article-service

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- name: Install dependencies
run: go mod download

- name: Go Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && make lint

# - name: Go Test
# run: go test -v ./...
# env:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: password
# POSTGRES_DB: postgres

- name: Go Build
run: go build -v ./...
49 changes: 49 additions & 0 deletions .github/workflows/bff_apollo_gateway_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: bff_apollo_gateway_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "web/admin/**"
- ".github/workflows/bff_apollo_gateway_pr_check.yml"

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

defaults:
run:
working-directory: ./bff/apollo-gateway

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: ./web/admin/package-lock.json

- name: Install dependencies
run: npm install --frozen-lockfile

- name: Lint
run: npm run lint

# - name: Test
# run: npm run test

- name: Build
run: npm run build

64 changes: 64 additions & 0 deletions .github/workflows/bookmark_service_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: bookmark_service_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "micro-service/bookmark-service/**"
- ".github/workflows/bookmark_service_pr_check.yml"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.22']

# services:
# postgres:
# image: docker.io/postgres:16-alpine
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: root
# POSTGRES_DB: password
# ports:
# - 5432:5432

defaults:
run:
working-directory: ./micro-service/bookmark-service

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- name: Install dependencies
run: go mod download

- name: Go Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && make lint

# - name: Go Test
# run: go test -v ./...
# env:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: password
# POSTGRES_DB: postgres

- name: Go Build
run: go build -v ./...
64 changes: 64 additions & 0 deletions .github/workflows/feed_service_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: feed_service_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "micro-service/feed-service/**"
- ".github/workflows/feed_service_pr_check.yml"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.22']

# services:
# postgres:
# image: docker.io/postgres:16-alpine
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: root
# POSTGRES_DB: password
# ports:
# - 5432:5432

defaults:
run:
working-directory: ./micro-service/feed-service

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- name: Install dependencies
run: go mod download

- name: Go Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && make lint

# - name: Go Test
# run: go test -v ./...
# env:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: password
# POSTGRES_DB: postgres

- name: Go Build
run: go build -v ./...
64 changes: 64 additions & 0 deletions .github/workflows/platform_service_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: platform_service_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "micro-service/platform-service/**"
- ".github/workflows/platform_service_pr_check.yml"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.22']

# services:
# postgres:
# image: docker.io/postgres:16-alpine
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: root
# POSTGRES_DB: password
# ports:
# - 5432:5432

defaults:
run:
working-directory: ./micro-service/platform-service

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- name: Install dependencies
run: go mod download

- name: Go Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && make lint

# - name: Go Test
# run: go test -v ./...
# env:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: password
# POSTGRES_DB: postgres

- name: Go Build
run: go build -v ./...
64 changes: 64 additions & 0 deletions .github/workflows/user_service_pr_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: user_service_pr_check

on:
push:
branches:
- "main"
- "develop"
- "feature/*"
- "feat/*"
- "YL-*"
paths:
- "micro-service/user-service/**"
- ".github/workflows/user_service_pr_check.yml"

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go: ['1.22']

# services:
# postgres:
# image: docker.io/postgres:16-alpine
# env:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: root
# POSTGRES_DB: password
# ports:
# - 5432:5432

defaults:
run:
working-directory: ./micro-service/user-service

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: false

- name: Install dependencies
run: go mod download

- name: Go Lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && make lint

# - name: Go Test
# run: go test -v ./...
# env:
# POSTGRES_USER: root
# POSTGRES_PASSWORD: password
# POSTGRES_DB: postgres

- name: Go Build
run: go build -v ./...
Loading

0 comments on commit 7848e44

Please sign in to comment.