Skip to content

Fixes #5185 - Add SF Linter to Github Workflow #2

Fixes #5185 - Add SF Linter to Github Workflow

Fixes #5185 - Add SF Linter to Github Workflow #2

Workflow file for this run

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