From 693980aed74a4012c6d8ba9d11c0e451cff718ab Mon Sep 17 00:00:00 2001 From: Silumesii Maboshe Date: Tue, 20 Aug 2024 09:37:42 +0200 Subject: [PATCH] Add Standard workflow This commit adds a GitHub Action that does Standard linting and formatting checks. Ref: - https://github.com/standardrb/standard-ruby-action --- .github/workflows/standardrb.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/standardrb.yml diff --git a/.github/workflows/standardrb.yml b/.github/workflows/standardrb.yml new file mode 100644 index 000000000..f81d83487 --- /dev/null +++ b/.github/workflows/standardrb.yml @@ -0,0 +1,22 @@ +--- +name: Lint with StandardRB + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + permissions: + contents: read + checks: write + + steps: + - uses: actions/checkout@v4 + - name: StandardRB Linter + uses: testdouble/standard-ruby-action@1.2.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + ruby-version: "3.3.5" + autofix: false