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/