From 5b187502a987ca58d0ee1d1061a9e92796797be6 Mon Sep 17 00:00:00 2001 From: axi92 Date: Tue, 27 Aug 2024 13:38:28 +0200 Subject: [PATCH] build: add npm-compatibility-check test (#43) --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4ce2d8..9f241c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,18 @@ on: pull_request: branches: ['main'] jobs: + npm-compatibility-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup NodeJS + uses: actions/setup-node@v4 + with: + node-version: lts/* + # Cache not enabled to test if npm can load and resolve everything + - name: Remove engine restrictions to enable use of npm + run: npm pkg delete engines + - run: npm i test-web: runs-on: ubuntu-latest steps: