-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-web/toggle-save-button
- Loading branch information
Showing
73 changed files
with
931 additions
and
587 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,71 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: [main, release] | ||
pull_request: | ||
jobs: | ||
prepare: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
web: ${{ steps.web.outputs.any_modified }} | ||
server: ${{ steps.server.outputs.any_modified }} | ||
worker: ${{ steps.worker.outputs.any_modified }} | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: changed files for web | ||
id: web | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: | | ||
web | ||
.github/workflows/ci.yml | ||
.github/workflows/ci_web.yml | ||
- name: changed files for server | ||
id: server | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: | | ||
server | ||
.github/workflows/ci.yml | ||
.github/workflows/ci_server.yml | ||
.github/workflows/build_server.yml | ||
- name: changed files for worker | ||
id: worker | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: | | ||
worker | ||
.github/workflows/ci.yml | ||
.github/workflows/ci_worker.yml | ||
.github/workflows/build_worker.yml | ||
ci-web: | ||
name: web | ||
needs: prepare | ||
if: needs.prepare.outputs.web == 'true' | ||
uses: ./.github/workflows/ci_web.yml | ||
|
||
ci-server: | ||
name: server | ||
needs: prepare | ||
if: needs.prepare.outputs.server == 'true' | ||
uses: ./.github/workflows/ci_server.yml | ||
|
||
ci-worker: | ||
name: worker | ||
needs: prepare | ||
if: needs.prepare.outputs.worker == 'true' | ||
uses: ./.github/workflows/ci_worker.yml | ||
|
||
ci: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- ci-web | ||
- ci-server | ||
- ci-worker | ||
if: '!failure()' | ||
steps: | ||
- run: echo OK |
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,64 +1,65 @@ | ||
name: ci-server | ||
on: | ||
push: | ||
branches: [main, release] | ||
paths: | ||
- server/** | ||
- .github/workflows/ci_server.yml | ||
- .github/workflows/server_build.yml | ||
- .github/workflows/deploy_test.yml | ||
- .github/workflows/pr_title.yml | ||
- .github/workflows/stage.yml | ||
- .github/workflows/release.yml | ||
- .github/workflows/server_build.yml | ||
pull_request: | ||
paths: | ||
- server/** | ||
- .github/workflows/ci_server.yml | ||
- .github/workflows/server_build.yml | ||
- .github/workflows/deploy_test.yml | ||
- .github/workflows/pr_title.yml | ||
- .github/workflows/stage.yml | ||
- .github/workflows/release.yml | ||
workflow_call: | ||
env: | ||
GO_VERSION: "1.23" | ||
|
||
jobs: | ||
ci: | ||
name: ci | ||
ci-server-lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: go setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.61 | ||
working-directory: server | ||
args: --config=../.golangci.yml | ||
skip-cache: true | ||
ci-server-i18n: | ||
name: i18n | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: server | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: go setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: check forgotten translations | ||
working-directory: server | ||
run: make i18n-ci | ||
ci-server-test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
services: | ||
mongo: | ||
image: mongo:6-focal | ||
ports: | ||
- 27017:27017 | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
- name: go setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
version: v1.61 | ||
working-directory: server | ||
args: --config=../.golangci.yml | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: test | ||
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic | ||
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m | ||
working-directory: server | ||
env: | ||
REEARTH_CMS_DB: mongodb://localhost | ||
- name: codecov | ||
- name: Send coverage report | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
flags: server | ||
file: coverage.txt | ||
- name: check forgotten translations | ||
run: make i18n-ci | ||
file: coverage.txt |
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 |
---|---|---|
@@ -1,61 +1,48 @@ | ||
name: ci-worker | ||
on: | ||
push: | ||
branches: [main, release] | ||
paths: | ||
- worker/** | ||
- .github/workflows/ci_worker.yml | ||
- .github/workflows/deploy_test.yml | ||
- .github/workflows/pr_title.yml | ||
- .github/workflows/stage.yml | ||
- .github/workflows/release.yml | ||
- .github/workflows/decompressor_build.yml | ||
- .github/workflows/worker_build.yml | ||
pull_request: | ||
paths: | ||
- worker/** | ||
- .github/workflows/ci_worker.yml | ||
- .github/workflows/deploy_test.yml | ||
- .github/workflows/pr_title.yml | ||
- .github/workflows/stage.yml | ||
- .github/workflows/release.yml | ||
workflow_call: | ||
env: | ||
GO_VERSION: "1.23" | ||
jobs: | ||
ci: | ||
name: ci | ||
ci-server-lint: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: worker | ||
services: | ||
mongo: | ||
image: mongo:6-focal | ||
ports: | ||
- 27017:27017 | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23 | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: cache | ||
uses: actions/cache@v4 | ||
- name: go setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: v1.61 | ||
working-directory: worker | ||
args: --config=../.golangci.yml | ||
skip-cache: true | ||
ci-server-test: | ||
name: test | ||
runs-on: ubuntu-latest | ||
services: | ||
mongo: | ||
image: mongo:6-focal | ||
ports: | ||
- 27017:27017 | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: go setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: test | ||
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic | ||
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 10m | ||
working-directory: worker | ||
env: | ||
REEARTH_CMS_WORKER_DB: mongodb://localhost | ||
- name: codecov | ||
REEARTH_CMS_DB: mongodb://localhost | ||
- name: Send coverage report | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
flags: worker | ||
file: coverage.txt | ||
file: coverage.txt |
Oops, something went wrong.