Dummy commit to prove the package name checker works. #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: JavaScript | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint Javascript | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout files | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github | |
javascriptv3 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
with: | |
files: "javascriptv3/**/*.{js,ts,jsx,tsx,json}" | |
- name: Setup NodeJS | |
if: steps.changed-files.outputs.any_changed == 'true' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Validate package names | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: ./javascriptv3/github_scripts/validate_packages.sh | |
- name: Install dependencies | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: npm i --prefix javascriptv3 | |
- name: Lint added and modified files | |
if: steps.changed-files.outputs.any_changed == 'true' | |
run: | | |
changed_files=(${{steps.changed-files.outputs.all_changed_files}}) | |
npm run --prefix javascriptv3 ci-lint -- ${changed_files[@]//javascriptv3\/} |