Fixes #5185 - Add SF Linter to Github Workflow #2
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: Lint | |
on: | |
push: | |
branches: | |
- '*' | |
- '**' | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
name: "Lint Sectorfile" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Download Linter | |
run: | | |
cd .. | |
curl -L --output linter.zip https://github.com/AliceFord/vuk-sf-linter/archive/refs/heads/main.zip | |
unzip linter.zip | |
rm linter.zip | |
- name: Install npm dependencies | |
run: | | |
cd ../vuk-sf-linter-main | |
npm install | |
npm install ts-node | |
- name: Run Linter | |
run: | | |
npx ts-node ../vuk-sf-linter-main/standalone-linter/linter.ts |