From ab04e0960b8263f79b662892aad53a99ad3ef44e Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 11:18:43 +0800 Subject: [PATCH 1/7] feat: add reusable build workflow --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a7fb08e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + uses: AwesomeHamster/workflows/.github/workflows/build.yml@master + with: + lint: true + test: true From 614e0698528cc869601411640050630be56e7604 Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 11:28:30 +0800 Subject: [PATCH 2/7] fix: yarn immutable install --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7fb08e..e1b062e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,8 @@ on: jobs: build: uses: AwesomeHamster/workflows/.github/workflows/build.yml@master + env: + YARN_ENABLE_IMMUTABLE_INSTALLS: false with: lint: true test: true From d086c0436f8d5696619f6c3b5731092e7d16480b Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 11:30:21 +0800 Subject: [PATCH 3/7] fix: remove branch requirement --- .github/workflows/build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1b062e..fd711ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,11 +2,7 @@ name: Build on: push: - branches: - - master pull_request: - branches: - - master jobs: build: From 2d69e254fa5837992ad3b60e9242f03710334d09 Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 11:34:24 +0800 Subject: [PATCH 4/7] fix: remove invalid env --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd711ee..404a920 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,6 @@ on: jobs: build: uses: AwesomeHamster/workflows/.github/workflows/build.yml@master - env: - YARN_ENABLE_IMMUTABLE_INSTALLS: false with: lint: true test: true From d6d05654fb156711cde7ccd85324834b715e4fb6 Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 11:46:51 +0800 Subject: [PATCH 5/7] fix: no immutable --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 404a920..04a5cf7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,3 +10,4 @@ jobs: with: lint: true test: true + yarn-no-immutable: true From 8a3b22f86e47c1f00c4e8e09bd966debb41dc2c2 Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 12:00:26 +0800 Subject: [PATCH 6/7] fix: add koishi into devDeps --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 41af41a..612c71a 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,8 @@ "esbuild-plugin-yaml": "^0.0.1", "eslint": "^8.19.0", "eslint-import-resolver-typescript": "^3.4.1", + "koishi": "^4.15.7", + "koishi-plugin-puppeteer": "^3.3.1", "markdown-magic": "^2.6.1", "mocha": "^9.1.3", "prettier": "^2.7.1", From a0a1951340790aa55ba1732ddeadc868f7aba03b Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Sat, 17 Feb 2024 13:08:11 +0800 Subject: [PATCH 7/7] remove old workflow --- .github/workflows/build.yml | 13 ------------- .github/workflows/test.yml | 18 ------------------ 2 files changed, 31 deletions(-) delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 04a5cf7..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Build - -on: - push: - pull_request: - -jobs: - build: - uses: AwesomeHamster/workflows/.github/workflows/build.yml@master - with: - lint: true - test: true - yarn-no-immutable: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 11bc134..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Test -on: [push, pull_request] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: AwesomeHamster/actions-test@master - env: - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true - with: - install-peer: > - koishi - koishi-plugin-puppeteer - test: | - yarn lint - yarn test