From 2abbf41beeb5526acfaf3e811fc0e10604203da6 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 6 May 2025 00:14:48 -0500 Subject: [PATCH] break Gitea actions up into separate files --- .gitea/workflows/ci.yaml | 28 ---------------------------- .gitea/workflows/lint.yaml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 28 deletions(-) create mode 100644 .gitea/workflows/lint.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 4a5867a..758a938 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,35 +13,7 @@ on: pull_request: jobs: - lint: - runs-on: ubuntu-latest - permissions: - checks: write - contents: write - steps: - - name: Login to Docker - uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Ruby Setup - uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 - with: - ruby-version: '3.4' - bundler-cache: true - - - run: bundle install - - - name: Standard Ruby - run: bundle exec standardrb - - test: - needs: lint runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 0000000..1e01ace --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,23 @@ +--- +name: Ruby Lint +on: + push: + branches: + - "**" + pull_request: +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Ruby Setup + uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0 + with: + ruby-version: '3.4' + bundler-cache: true + + - name: Standard Ruby + run: bundle exec standardrb +