From ca91071864b6ae66ea48027bff44568c28ff4008 Mon Sep 17 00:00:00 2001 From: Patrick Rodgers Date: Wed, 28 Feb 2024 08:53:40 -0500 Subject: [PATCH] Create v4_pull_request.yml --- .github/workflows/v4_pull_request.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/v4_pull_request.yml diff --git a/.github/workflows/v4_pull_request.yml b/.github/workflows/v4_pull_request.yml new file mode 100644 index 000000000..c76769f3e --- /dev/null +++ b/.github/workflows/v4_pull_request.yml @@ -0,0 +1,33 @@ +name: V4 Pull Request Testing +on: + pull_request: + branches: + - version-4 +jobs: + run_pr_tests: + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + with: + ref: version-4 + # setup nodejs + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: 'https://registry.npmjs.org' + cache: 'npm' + cache-dependency-path: package-lock.json + + # Run the npm install + - run: npm ci + + - name: Run lint + run: npm run lint + + - name: Run package + run: npm run package + + - name: Run tests + run: npm test -- --mode pr