diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml deleted file mode 100644 index 5f94441..0000000 --- a/.github/workflows/lints.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Lints -on: - pull_request: - push: - tags-ignore: - - '*' - paths-ignore: - - '*.md' - workflow_dispatch: -permissions: - contents: read - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - name: Run lints - run: bundle exec rubocop diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ae9a609..3e04191 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,5 @@ --- -name: Tests +name: Test + lint on: pull_request: push: @@ -12,6 +12,19 @@ permissions: contents: read jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run lints + run: bundle exec rubocop + test: runs-on: ubuntu-latest strategy: