40 lines
807 B
YAML
40 lines
807 B
YAML
name: Test
|
|||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches: [development]
|
||
|
|
pull_request:
|
||
|
|
branches: [development]
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
lint:
|
||
|
|
runs-on: codeberg-small
|
||
|
|
steps:
|
||
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
||
|
|
|
||
|
|
- uses: https://github.com/ruby/setup-ruby@v1
|
||
|
|
with:
|
||
|
|
ruby-version: "3.4"
|
||
|
|
bundler-cache: true
|
||
|
|
|
||
|
|
- name: RuboCop
|
||
|
|
run: bundle exec rubocop
|
||
|
|
|
||
|
|
test:
|
||
|
|
runs-on: codeberg-small
|
||
|
|
needs: lint
|
||
|
|
strategy:
|
||
|
|
fail-fast: false
|
||
|
|
matrix:
|
||
|
|
ruby-version: ["3.3", "3.4"]
|
||
|
|
steps:
|
||
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
||
|
|
|
||
|
|
- uses: https://github.com/ruby/setup-ruby@v1
|
||
|
|
with:
|
||
|
|
ruby-version: ${{ matrix.ruby-version }}
|
||
|
|
bundler-cache: true
|
||
|
|
|
||
|
|
- name: Tests
|
||
|
|
run: bundle exec rake test
|