Skip to content

Commit

Permalink
Merge pull request #967 from traPtitech/chore/improve-ci-effectiveness
Browse files Browse the repository at this point in the history
chore: バックエンド周りのCIの実行を影響がないときにスキップする
  • Loading branch information
Pugma authored Dec 2, 2024
2 parents 0bdfcca + 26a074e commit e204980
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ on:
push:
branches:
- 'main'
paths-ignore:
- 'dashboard/**'
- 'docs/**'
- 'README.md'
- '.github/**'
- '!.github/workflows/ci.yaml'
pull_request:
paths-ignore:
- 'dashboard/**'
- 'docs/**'
- 'README.md'
- '.github/**'
- '!.github/workflows/ci.yaml'

jobs:
mod:
Expand Down Expand Up @@ -53,12 +65,12 @@ jobs:
strategy:
matrix:
race:
- ""
- ''
- -race
env:
ENABLE_DB_TESTS: "true"
ENABLE_DOCKER_TESTS: "true"
DOCKER_API_VERSION: "1.43"
ENABLE_DB_TESTS: 'true'
ENABLE_DOCKER_TESTS: 'true'
DOCKER_API_VERSION: '1.43'
services:
mysql:
image: mysql:8
Expand Down Expand Up @@ -97,10 +109,10 @@ jobs:
strategy:
matrix:
race:
- ""
- ''
- -race
env:
ENABLE_K8S_TESTS: "true"
ENABLE_K8S_TESTS: 'true'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -110,7 +122,7 @@ jobs:
uses: AbsaOSS/k3d-action@v2
id: single-cluster
with:
cluster-name: "test-cluster"
cluster-name: 'test-cluster'
args: >-
--agents 1
--no-lb
Expand Down Expand Up @@ -160,4 +172,4 @@ jobs:
version: v1.65.3
- run: tbls lint
env:
TBLS_DSN: "mariadb://root:password@127.0.0.1:5004/neoshowcase"
TBLS_DSN: 'mariadb://root:password@127.0.0.1:5004/neoshowcase'

0 comments on commit e204980

Please sign in to comment.