Skip to content

[Build] Update dependency node to 20.16 #610

[Build] Update dependency node to 20.16

[Build] Update dependency node to 20.16 #610

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
permissions:
contents: read
jobs:
build-and-test:
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && !github.event.pull_request.draft && !startsWith(github.event.pull_request.title, 'WIP ')) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
clean: true
lfs: true
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: "pyproject.toml"
cache: "pip"
- run: pip install -r requirements.txt
- run: black --check .
- run: pylint salt2type
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version-file: "tpl/.nvmrc"
cache: "npm"
cache-dependency-path: "tpl/package-lock.json"
- run: npm install
working-directory: tpl
- run: npx prettier --check ..
working-directory: tpl
- run: npm run lint
working-directory: tpl
- run: npm run typecheck
working-directory: tpl
- run: npm run build
working-directory: tpl
- run: npm run test
working-directory: tpl