Skip to content

chore(deps): bump actions/setup-node from 3 to 4 #240

chore(deps): bump actions/setup-node from 3 to 4

chore(deps): bump actions/setup-node from 3 to 4 #240

Workflow file for this run

name: Lint codebase & Execute tests
on:
workflow_call:
push:
branches:
- dependabot/** #branches are generated by https://github.com/dependabot
pull_request:
types:
- opened
- synchronize
jobs:
test:
name: 🧪 Testing & Testing
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ${{ fromJson(vars.RTLDEV_MW_CI_NODE_MATRIX) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run lint
- name: Tests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_REPO: ${{ vars.GH_REPO }}
WHMCSMP_LOGIN: ${{ secrets.WHMCSMP_LOGIN }}
WHMCSMP_PASSWORD: ${{ secrets.WHMCSMP_PASSWORD }}
WHMCSMP_PRODUCTID: ${{ vars.WHMCSMP_PRODUCTID }}
WHMCSMP_MINVERSION: ${{ vars.WHMCSMP_MINVERSION }}
DEBUG: ${{ vars.DEBUG }}
run: npm run test
perform_codeql_analysis:
name: 🧪 CodeQL Analysis
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2