From 289cf6bad2744768da028e0bb5074113df3456f6 Mon Sep 17 00:00:00 2001 From: leave3310 Date: Sun, 17 Sep 2023 22:08:52 +0800 Subject: [PATCH 1/2] :construction_worker:ci: add github action ci --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2d33a21 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,40 @@ +name: github action CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + - "feature/*" + - "docs/*" + - "ui/*" + - "refactor/*" + - "infra/*" + +jobs: + ci: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Launch Turbo Remote Cache Server + uses: dtinth/setup-github-actions-caching-for-turbo@v1 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "pnpm" + - name: Install Dependencies + run: pnpm install + - name: Check Lint + run: pnpm lint + - name: Check Type + run: pnpm typecheck + - name: Unit Test + run: pnpm test From 68635b9ce632d412176efb09a142eb412c93a21f Mon Sep 17 00:00:00 2001 From: leave3310 Date: Sun, 17 Sep 2023 22:25:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=9Aci:=20fixed=20pr=20type=20and?= =?UTF-8?q?=20branches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d33a21..85c7e76 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,8 +5,8 @@ on: branches: - main pull_request: + types: [opened, synchronize] branches: - - main - "feature/*" - "docs/*" - "ui/*"