From 89b5a04fb5bce23cdd77e5b9f2e175f60404e429 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 29 Sep 2021 14:52:37 +0200 Subject: ci: don't run stylua on all branches --- .github/workflows/ci.yml | 21 --------------------- .github/workflows/stylua.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/stylua.yml (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 04ca8e81..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Format Checker - -on: - push: - branches: - - '*' - pull_request: - branches: - - '*' - -jobs: - fmt: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup FMT - uses: JohnnyMorganz/stylua-action@1.0.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - # CLI arguments - args: ./lua/ --check diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml new file mode 100644 index 00000000..b4498d93 --- /dev/null +++ b/.github/workflows/stylua.yml @@ -0,0 +1,19 @@ +name: Stylua check + +on: + push: + branches: + - 'main' + pull_request: + +jobs: + stylua: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run Stylua check + uses: JohnnyMorganz/stylua-action@1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # CLI arguments + args: --check . -- cgit v1.2.3-70-g09d2