Skip to content

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

WIP: try to run analyzer on PR as well?

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

# 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: [12.x]
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-workbook-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
files: |
**.workbook
- name: Use Node.js ${{ matrix.node-version }}
if: steps.changed-workbook-files.outputs.any_changed == 'true'
uses: actions/setup-node@v1
working-directory: ./scripts

Check failure on line 34 in .github/workflows/template-warnings.yaml

View workflow run for this annotation

GitHub Actions / Template Warnings

Invalid workflow file

The workflow is not valid. .github/workflows/template-warnings.yaml (Line: 34, Col: 7): Unexpected value 'working-directory'
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run analyze ${{ steps.changed-workbook-files.outputs.all_changed_files }}