Skip to content

Merge pull request #1002 from brave/renovate/actions-setup-node-4.x #3370

Merge pull request #1002 from brave/renovate/actions-setup-node-4.x

Merge pull request #1002 from brave/renovate/actions-setup-node-4.x #3370

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests and npm audit.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: git submodule update --init --recursive
- if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' }}
run: npm audit
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run data-files-ad-block-rust
- run: npm run data-files-local-data-files
- run: npm run data-files-leo-local-models