From 8815e8899ebfb725ee05d47efe55bf5c322f2b36 Mon Sep 17 00:00:00 2001 From: hashrock Date: Thu, 10 Nov 2022 18:50:58 +0900 Subject: [PATCH] ci: split ci of main and www (#892) Separated yml to speed up CI for www --- .github/workflows/ci.yml | 2 ++ .github/workflows/www.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/www.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba89c4b2..eefec097 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,10 @@ name: ci on: push: branches: [main] + paths-ignore: [www] pull_request: branches: [main] + paths-ignore: [www] jobs: test: diff --git a/.github/workflows/www.yml b/.github/workflows/www.yml new file mode 100644 index 00000000..9566c5bf --- /dev/null +++ b/.github/workflows/www.yml @@ -0,0 +1,32 @@ +name: www + +on: + push: + branches: [main] + paths: [www] + pull_request: + branches: [main] + paths: [www] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Setup Deno + uses: denoland/setup-deno@v1 + + - name: Verify formatting + run: deno fmt --check + working-directory: www/ + + - name: Run linter + run: deno lint + working-directory: www/ + + - name: Type check website + run: deno check --remote main.ts dev.ts + working-directory: www/