From 029a88b88656ac3334114f6d5f1adfbac7f7fc85 Mon Sep 17 00:00:00 2001 From: Ansh Goyal Date: Tue, 17 Sep 2024 22:09:15 +0530 Subject: [PATCH] fix: netlify-edge-functions-test for PRs and jest tests (#3229) --- .github/workflows/netlify-edge-functions-test.yml | 11 ++++++----- .gitignore | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/netlify-edge-functions-test.yml b/.github/workflows/netlify-edge-functions-test.yml index 83150c38be0a..adc110d68ddb 100644 --- a/.github/workflows/netlify-edge-functions-test.yml +++ b/.github/workflows/netlify-edge-functions-test.yml @@ -1,20 +1,21 @@ name: Run tests for netlify edge-functions on: - workflow_dispatch + pull_request: + types: [opened, reopened, synchronize, ready_for_review] jobs: netlify-tests: strategy: matrix: - deno-version: [1.30.0] + deno-version: [1.46.0] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Deno - uses: denolib/setup-deno@v2 + uses: denoland/setup-deno@3a041055d2e2068f6e2c59904ee0ec2dfa9d9665 with: deno-version: ${{ matrix.deno-version }} - name: Test with Deno - run: deno test --allow-env --trace-ops - \ No newline at end of file + run: deno test --allow-env --trace-ops netlify/**/*.test.ts + diff --git a/.gitignore b/.gitignore index 210beb93f6a7..0a69d4de26c5 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ cypress/videos *storybook.log /storybook-static/ coverage +deno.lock