mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00

- add linter workflow - fix linter errors - finish incomplete function in term.lua - add formatter workflow
27 lines
665 B
YAML
27 lines
665 B
YAML
name: Format
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
format:
|
|
name: Stylua
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: date +%W > weekly
|
|
|
|
- name: Restore cache
|
|
id: cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.cargo/bin
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('weekly') }}
|
|
|
|
- name: Install
|
|
if: steps.cache.outputs.cache-hit != 'true'
|
|
run: cargo install stylua
|
|
|
|
- name: Format
|
|
run: stylua --check lua/ --config-path=.stylua.toml
|