Skip to content

Merge pull request #3 from NStefan002/release-please--branches--main #19

Merge pull request #3 from NStefan002/release-please--branches--main

Merge pull request #3 from NStefan002/release-please--branches--main #19

Workflow file for this run

name: Format
on: [push, pull_request]
jobs:
format:
name: Stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: date +%W > weekly
- name: Restore cache
id: cache
uses: actions/cache@v3
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