From 3029b27594fcb638edb8eaa483b8ce9982193a0f Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:11:12 +0300 Subject: [PATCH 01/22] imp --- .github/workflows/ci_server.yml | 59 +++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index f447950fa6..b8173c5756 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -20,22 +20,19 @@ on: - .github/workflows/pr_title.yml - .github/workflows/stage.yml - .github/workflows/release.yml +env: + GO_VERSION: "1.21" + jobs: - ci: - name: ci + ci-server-lint: runs-on: ubuntu-latest defaults: run: working-directory: server - services: - mongo: - image: mongo:6-focal - ports: - - 27017:27017 steps: - uses: actions/setup-go@v4 with: - go-version: 1.21 + go-version: ${{ env.GO_VERSION }} - name: checkout uses: actions/checkout@v4 - name: cache @@ -51,6 +48,50 @@ jobs: version: v1.52 working-directory: server args: --config=../.golangci.yml + ci-server-i18n: + runs-on: ubuntu-latest + defaults: + run: + working-directory: server + steps: + - uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - name: checkout + uses: actions/checkout@v4 + - name: cache + uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: check forgotten translations + run: make i18n-ci + ci-server-test: + name: ci + runs-on: ubuntu-latest + defaults: + run: + working-directory: server + services: + mongo: + image: mongo:6-focal + ports: + - 27017:27017 + steps: + - uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - name: checkout + uses: actions/checkout@v4 + - name: cache + uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: test run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic env: @@ -60,5 +101,3 @@ jobs: with: flags: server file: coverage.txt - - name: check forgotten translations - run: make i18n-ci From f753e65e70822743f322e6499d2511420e7bb3c2 Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:13:18 +0300 Subject: [PATCH 02/22] fix --- .github/workflows/ci_server.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index b8173c5756..4b150ea74f 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -69,7 +69,6 @@ jobs: - name: check forgotten translations run: make i18n-ci ci-server-test: - name: ci runs-on: ubuntu-latest defaults: run: From 4523113e65b0ccaf5f2787a0461fc6c3c2978445 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 00:19:29 +0300 Subject: [PATCH 03/22] fix --- .github/workflows/ci_server.yml | 3 +++ go.work.sum | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 8a739529fe..392795b9f9 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -25,6 +25,7 @@ env: jobs: ci-server-lint: + name: lint runs-on: ubuntu-latest defaults: run: @@ -49,6 +50,7 @@ jobs: working-directory: server args: --config=../.golangci.yml ci-server-i18n: + name: i18n runs-on: ubuntu-latest defaults: run: @@ -69,6 +71,7 @@ jobs: - name: check forgotten translations run: make i18n-ci ci-server-test: + name: test runs-on: ubuntu-latest defaults: run: diff --git a/go.work.sum b/go.work.sum index 2e536fde24..452935b5f9 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1956,6 +1956,7 @@ github.com/matryer/moq v0.2.7 h1:RtpiPUM8L7ZSCbSwK+QcZH/E9tgqAkFjKQxsRs25b4w= github.com/matryer/moq v0.2.7/go.mod h1:kITsx543GOENm48TUAQyJ9+SAvFSr7iGQXPoth/VUBk= github.com/matryer/moq v0.3.1 h1:kLDiBJoGcusWS2BixGyTkF224aSCD8nLY24tj/NcTCs= github.com/matryer/moq v0.3.1/go.mod h1:RJ75ZZZD71hejp39j4crZLsEDszGk6iH4v4YsWFKH4s= +github.com/matryer/moq v0.3.3 h1:pScMH9VyrdT4S93yiLpVyU8rCDqGQr24uOyBxmktG5Q= github.com/matryer/moq v0.3.3/go.mod h1:RJ75ZZZD71hejp39j4crZLsEDszGk6iH4v4YsWFKH4s= github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2 h1:JAEbJn3j/FrhdWA9jW8B5ajsLIjeuEHLi8xE4fk997o= github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs= From bec67d41035a9848604080e33b6c811e5699c119 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 00:31:27 +0300 Subject: [PATCH 04/22] fix --- .github/workflows/ci_server.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 392795b9f9..828f7823d5 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -31,22 +31,16 @@ jobs: run: working-directory: server steps: - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - name: checkout uses: actions/checkout@v4 - - name: cache - uses: actions/cache@v4 + - 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 }} + cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: - version: v1.54 + version: v1.55 working-directory: server args: --config=../.golangci.yml ci-server-i18n: From fd555b246c1cd203e2aa14c51281818d2bca58fa Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 00:39:32 +0300 Subject: [PATCH 05/22] fix --- .github/workflows/ci_server.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 828f7823d5..6ce8c85805 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -27,13 +27,11 @@ jobs: ci-server-lint: name: lint runs-on: ubuntu-latest - defaults: - run: - working-directory: server steps: - name: checkout uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - name: go setup + uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} cache: false @@ -50,7 +48,8 @@ jobs: run: working-directory: server steps: - - uses: actions/setup-go@v4 + - name: go setup + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: checkout From e24ee2e76015bcaf2322ae7bd040dce05200db5a Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 00:43:41 +0300 Subject: [PATCH 06/22] fix --- .github/workflows/ci_server.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 6ce8c85805..ef61083098 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -34,13 +34,13 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: version: v1.55 working-directory: server args: --config=../.golangci.yml + skip-cache: true ci-server-i18n: name: i18n runs-on: ubuntu-latest From 91a0ef8395565a0fe07adf33524da662620c3a5e Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 00:52:46 +0300 Subject: [PATCH 07/22] fix --- .github/workflows/ci_server.yml | 34 ++++++++++----------------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index ef61083098..8c09ae8df7 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -48,51 +48,37 @@ jobs: run: working-directory: server steps: + - name: checkout + uses: actions/checkout@v4 - name: go setup uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - - name: checkout - uses: actions/checkout@v4 - - name: cache - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - name: check forgotten translations + working-directory: server run: make i18n-ci ci-server-test: name: test runs-on: ubuntu-latest - defaults: - run: - working-directory: server services: mongo: image: mongo:6-focal ports: - 27017:27017 steps: - - uses: actions/setup-go@v4 - with: - go-version: ${{ env.GO_VERSION }} - name: checkout uses: actions/checkout@v4 - - name: cache - uses: actions/cache@v3 + - name: go setup + uses: actions/setup-go@v4 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + 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 + file: coverage.txt \ No newline at end of file From 958aef4b24cf6607ba77752a0fed29c848a80b27 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 02:13:56 +0300 Subject: [PATCH 08/22] fix --- .../{server_build.yml => build_server.yml} | 0 .../{worker_build.yml => build_worker.yml} | 0 .github/workflows/ci.yml | 68 +++++++++++++++++ .github/workflows/ci_server.yml | 21 +----- .github/workflows/ci_web.yml | 18 +---- .github/workflows/ci_worker.yml | 73 ++++++++----------- 6 files changed, 100 insertions(+), 80 deletions(-) rename .github/workflows/{server_build.yml => build_server.yml} (100%) rename .github/workflows/{worker_build.yml => build_worker.yml} (100%) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/server_build.yml b/.github/workflows/build_server.yml similarity index 100% rename from .github/workflows/server_build.yml rename to .github/workflows/build_server.yml diff --git a/.github/workflows/worker_build.yml b/.github/workflows/build_worker.yml similarity index 100% rename from .github/workflows/worker_build.yml rename to .github/workflows/build_worker.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..8a8f1a71fc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,68 @@ +name: ci +on: + push: + branches: [main, release] + pull_request: +jobs: + prepare: + runs-on: ubuntu-latest + outputs: + web: ${{ steps.web.outputs.any_changed }} + server: ${{ steps.server.outputs.any_changed }} + worker: ${{ steps.worker.outputs.any_changed }} + steps: + - name: checkout + uses: actions/checkout@v4 + - name: changed files for web + id: web + uses: tj-actions/changed-files@v36 + with: + files: | + web + .github/workflows/ci.yml + .github/workflows/ci_web.yml + + - name: changed files for server + id: server + uses: tj-actions/changed-files@v36 + 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@v36 + with: + files: | + worker + .github/workflows/ci.yml + .github/workflows/ci_worker.yml + .github/workflows/build_worker.yml + + ci-web: + needs: prepare + if: needs.prepare.outputs.web == 'true' + uses: ./.github/workflows/ci_web.yml + + ci-server: + needs: prepare + if: needs.prepare.outputs.server == 'true' + uses: ./.github/workflows/ci_server.yml + + ci-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 \ No newline at end of file diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index 8c09ae8df7..12a48a44e5 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -1,25 +1,6 @@ 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.22" diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index b97bd93e24..4241b81728 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -1,22 +1,6 @@ name: ci-web on: - push: - branches: [main, release] - paths: - - web/** - - .github/workflows/ci_web.yml - - .github/workflows/deploy_test.yml - - .github/workflows/pr_title.yml - - .github/workflows/stage.yml - - .github/workflows/release.yml - pull_request: - paths: - - web/** - - .github/workflows/ci_web.yml - - .github/workflows/deploy_test.yml - - .github/workflows/pr_title.yml - - .github/workflows/stage.yml - - .github/workflows/release.yml + workflow_call: jobs: ci: name: ci diff --git a/.github/workflows/ci_worker.yml b/.github/workflows/ci_worker.yml index 440ebf87aa..a59485ed69 100644 --- a/.github/workflows/ci_worker.yml +++ b/.github/workflows/ci_worker.yml @@ -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.22" 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.22 - 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@v4 with: - version: v1.54 + version: v1.55 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@v4 + 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 \ No newline at end of file From 58c2d22be2ed76c84c6f3ef9d9edc2cc03d12f6c Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:05:34 +0300 Subject: [PATCH 09/22] fix --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a8f1a71fc..38de91ce20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,21 +43,25 @@ jobs: .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: + name: success runs-on: ubuntu-latest needs: - ci-web From 402f921f512cc4a0c7151d5116128eb94af2c54e Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:11:21 +0300 Subject: [PATCH 10/22] fix --- .github/workflows/{pr_title.yml => pr.yml} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename .github/workflows/{pr_title.yml => pr.yml} (87%) diff --git a/.github/workflows/pr_title.yml b/.github/workflows/pr.yml similarity index 87% rename from .github/workflows/pr_title.yml rename to .github/workflows/pr.yml index 06179c4f4c..18056717da 100644 --- a/.github/workflows/pr_title.yml +++ b/.github/workflows/pr.yml @@ -1,4 +1,4 @@ -name: PR Title Checker +name: PR on: pull_request: types: @@ -8,12 +8,17 @@ on: - labeled - unlabeled jobs: - pr_title: + labeler: + name: labeler runs-on: ubuntu-latest steps: - uses: actions/labeler@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + title_check: + name: title check + runs-on: ubuntu-latest + steps: - uses: amannn/action-semantic-pull-request@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 77b2562db1af2d61466aae7c7113dc04d0257067 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 21:17:44 +0300 Subject: [PATCH 11/22] fix --- .github/workflows/ci.yml | 1 - .github/workflows/pr.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38de91ce20..1bed3b9707 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,6 @@ jobs: uses: ./.github/workflows/ci_worker.yml ci: - name: success runs-on: ubuntu-latest needs: - ci-web diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 18056717da..09bf18e614 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,3 +32,11 @@ jobs: The subject "{subject}" found in the pull request title "{title}" didn't match the configured pattern. Please ensure that the subject doesn't start with an uppercase character. + pr_title: + runs-on: ubuntu-latest + needs: + - labeler + - title_check + if: '!failure()' + steps: + - run: echo OK From 6bcf33b1bb5e3ad5868f91980eb8fb18b57332e8 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 22:15:30 +0300 Subject: [PATCH 12/22] fix --- .github/workflows/ci_web.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index 4241b81728..b180b1b826 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -17,13 +17,14 @@ jobs: id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v4 - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) + id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - name: Install + if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install - name: Lint run: yarn run lint From 96d0ec302ffa94c81d9b07f42b6f9763f4d6f959 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 22:21:54 +0300 Subject: [PATCH 13/22] fix --- .github/workflows/ci_web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index b180b1b826..557ecb8086 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v4 id: yarn-cache with: From cdd4fc90d36289450c976337d5c9867fc11c06b7 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sat, 9 Mar 2024 22:40:38 +0300 Subject: [PATCH 14/22] fix --- .github/workflows/ci_web.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index 557ecb8086..daa31f0efa 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -9,10 +9,10 @@ jobs: run: working-directory: web steps: + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: lts/* - - uses: actions/checkout@v4 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT @@ -24,7 +24,6 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Install - if: steps.yarn-cache.outputs.cache-hit != 'true' run: yarn install - name: Lint run: yarn run lint From df13b3d65a204f5535f00ab9814d88db67312293 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sun, 10 Mar 2024 11:28:16 +0300 Subject: [PATCH 15/22] fix --- .github/workflows/ci_web.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index daa31f0efa..e3bf4313d7 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -13,16 +13,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v4 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn + cache-dependency-path: '**/yarn.lock' - name: Install run: yarn install - name: Lint From d3a3510c6df914229b62735a0e2a3104ca256183 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sun, 10 Mar 2024 11:35:07 +0300 Subject: [PATCH 16/22] fix --- .github/workflows/ci_web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index e3bf4313d7..1c78967d38 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -15,7 +15,7 @@ jobs: node-version: lts/* cache: yarn cache-dependency-path: '**/yarn.lock' - - name: Install + - name: Install dependencies run: yarn install - name: Lint run: yarn run lint From 32abbb125f306f489b9a01ad58224766c8435a89 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Sun, 10 Mar 2024 11:41:33 +0300 Subject: [PATCH 17/22] fix --- .github/workflows/ci_web.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_web.yml b/.github/workflows/ci_web.yml index 1c78967d38..e3bf4313d7 100644 --- a/.github/workflows/ci_web.yml +++ b/.github/workflows/ci_web.yml @@ -15,7 +15,7 @@ jobs: node-version: lts/* cache: yarn cache-dependency-path: '**/yarn.lock' - - name: Install dependencies + - name: Install run: yarn install - name: Lint run: yarn run lint From 229401a4c203cf44c1119dcb8647bcc73491e741 Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:48:51 +0200 Subject: [PATCH 18/22] Update .github/workflows/ci.yml Co-authored-by: KeisukeYamashita <19yamashita15@gmail.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bed3b9707..05f3713e7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v4 - name: changed files for web id: web - uses: tj-actions/changed-files@v36 + uses: tj-actions/changed-files@v45 with: files: | web From 7f86acf910ff9529833c868d36a6892b841b3a23 Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:49:02 +0200 Subject: [PATCH 19/22] Update .github/workflows/ci.yml Co-authored-by: KeisukeYamashita <19yamashita15@gmail.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05f3713e7d..cf063404b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: changed files for server id: server - uses: tj-actions/changed-files@v36 + uses: tj-actions/changed-files@v45 with: files: | server From 3935fcd6566490cba6c6b0ae53988492ae5d17b3 Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:49:15 +0200 Subject: [PATCH 20/22] Update .github/workflows/ci.yml Co-authored-by: KeisukeYamashita <19yamashita15@gmail.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf063404b9..4269104b1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - name: changed files for worker id: worker - uses: tj-actions/changed-files@v36 + uses: tj-actions/changed-files@v45 with: files: | worker From 2a800a2aed95f10f36750e04d7de0bd470e90ae1 Mon Sep 17 00:00:00 2001 From: yk-eukarya <81808708+yk-eukarya@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:49:45 +0200 Subject: [PATCH 21/22] Update .github/workflows/ci.yml Co-authored-by: KeisukeYamashita <19yamashita15@gmail.com> --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4269104b1b..5e70e71ec0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,9 +7,9 @@ jobs: prepare: runs-on: ubuntu-latest outputs: - web: ${{ steps.web.outputs.any_changed }} - server: ${{ steps.server.outputs.any_changed }} - worker: ${{ steps.worker.outputs.any_changed }} + 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 From 419a101b91dd65f197d07b1b9d90d8687cb49489 Mon Sep 17 00:00:00 2001 From: ymk <81808708+yk-eukarya@users.noreply.github.com> Date: Fri, 11 Oct 2024 19:55:24 +0200 Subject: [PATCH 22/22] fix --- .github/workflows/ci_server.yml | 2 +- .github/workflows/ci_worker.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_server.yml b/.github/workflows/ci_server.yml index f05f1783b6..5041479b96 100644 --- a/.github/workflows/ci_server.yml +++ b/.github/workflows/ci_server.yml @@ -18,7 +18,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.55 + version: v1.61 working-directory: server args: --config=../.golangci.yml skip-cache: true diff --git a/.github/workflows/ci_worker.yml b/.github/workflows/ci_worker.yml index a7505e9e81..158faf18ca 100644 --- a/.github/workflows/ci_worker.yml +++ b/.github/workflows/ci_worker.yml @@ -17,7 +17,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.55 + version: v1.61 working-directory: worker args: --config=../.golangci.yml skip-cache: true