Skip to content

Commit

Permalink
try to run analyzer on PR as well?
Browse files Browse the repository at this point in the history
  • Loading branch information
gardnerjr committed Jun 22, 2024
1 parent fd5a742 commit 7385986
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/template-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v2
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/template-warnings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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 Validation

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 }}

0 comments on commit 7385986

Please sign in to comment.