From 38e33ef05631900996faf4c5e72c26faec40fb87 Mon Sep 17 00:00:00 2001 From: Max Duval Date: Tue, 31 Jan 2023 17:01:50 +0000 Subject: [PATCH] feat: enforce package health --- .github/workflows/dependencies.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/dependencies.yml diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 00000000000..0052e4ab615 --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,30 @@ +name: 📦 Dependencies checks +on: + pull_request: + paths: + - 'dotcom-rendering/package.json' + - '**/yarn.lock' + + # Allows you to run this workflow manually from the Actions tab. + workflow_dispatch: + +jobs: + types-dependencies: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.30.0 + + - name: Check dependencies + run: | + deno run \ + --allow-read=dotcom-rendering \ + --allow-net=unpkg.com \ + https://deno.land/x/package_health@0.1.0/src/main.ts \ + dotcom-rendering/dotcom-rendering/package.json \ + --cache