Skip to content

WIP: try to run analyzer on PR as well? #2

WIP: try to run analyzer on PR as well?

WIP: try to run analyzer on PR as well? #2

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Template Warnings
on:
pull_request:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
# To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g
with:
since_last_remote_commit: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
working-directory: ./scripts
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run analyze ${{ steps.changed-files.outputs.all_changed_files }}