From 5b966563f3ed82276e9b7098e5503e555d311ff6 Mon Sep 17 00:00:00 2001 From: get-me-power Date: Mon, 2 Dec 2024 23:17:15 +0900 Subject: [PATCH 1/3] setup Github Actions --- .circleci/config.yml | 2 +- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 826bfcb..d91ad0f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,7 +23,7 @@ jobs: steps: - run: name: Install devfarm - command: go get github.com/DeNA/devfarm/cmd/devfarm + command: go get github.com/dena/devfarm/cmd/devfarm - run: name: Test command: devfarm version diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..47961d4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: + - replace/ci + - master + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + + - uses: actions/setup-go@v5 + with: + go-version: '1.14' + + - name: Install dependencies + run: | + go env + go get -u github.com/go-bindata/go-bindata/go-bindata + +# - name: Install devfarm +# run: | +# go get github.com/dena/devfarm/cmd/devfarm +# devfarm version + + - name: Build assets + run: go generate ./... + + - name: Test + run: ./test/test-all.bash From a602807cc0f871c08082deeef8894f22178a85fb Mon Sep 17 00:00:00 2001 From: get-me-power Date: Tue, 3 Dec 2024 00:03:41 +0900 Subject: [PATCH 2/3] delete circleci --- .circleci/config.yml | 39 ------------------------------------- .github/workflows/build.yml | 6 ------ 2 files changed, 45 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index d91ad0f..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,39 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: cimg/go:1.14 - steps: - - run: - name: Install dependencies - command: | - go env - go get -u github.com/go-bindata/go-bindata/go-bindata - - checkout - - run: - name: Build assets - command: go generate ./... - - run: - name: Test - command: ./test/test-all.bash - - go_get: - docker: - - image: cimg/go:1.14 - steps: - - run: - name: Install devfarm - command: go get github.com/dena/devfarm/cmd/devfarm - - run: - name: Test - command: devfarm version - -workflows: - version: 2 - build: - jobs: - - build - - go_get: - filters: - branches: - only: master diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47961d4..5e286cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ on: workflow_dispatch: push: branches: - - replace/ci - master pull_request: @@ -23,11 +22,6 @@ jobs: go env go get -u github.com/go-bindata/go-bindata/go-bindata -# - name: Install devfarm -# run: | -# go get github.com/dena/devfarm/cmd/devfarm -# devfarm version - - name: Build assets run: go generate ./... From d9f3df64445b78c2907e36042eaf239a9dc54f3c Mon Sep 17 00:00:00 2001 From: get-me-power Date: Wed, 4 Dec 2024 17:00:04 +0900 Subject: [PATCH 3/3] rename: yml --- .github/workflows/{build.yml => unittest.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{build.yml => unittest.yml} (96%) diff --git a/.github/workflows/build.yml b/.github/workflows/unittest.yml similarity index 96% rename from .github/workflows/build.yml rename to .github/workflows/unittest.yml index 5e286cc..8024564 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/unittest.yml @@ -1,4 +1,4 @@ -name: CI +name: Unit Test on: workflow_dispatch: