mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 12:12:21 -05:00
Bumps [paambaati/codeclimate-action](https://github.com/paambaati/codeclimate-action) from 6.0.0 to 8.0.0. - [Release notes](https://github.com/paambaati/codeclimate-action/releases) - [Changelog](https://github.com/paambaati/codeclimate-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/paambaati/codeclimate-action/compare/v6.0.0...v8.0.0) --- updated-dependencies: - dependency-name: paambaati/codeclimate-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Ruby
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/setup
|
|
- name: Remove data schema so we bootstrap from zero with data migrations
|
|
run: rm db/data_schema.rb
|
|
- name: Set up database with prepare command so we catch any migration explosions
|
|
run: bundle exec rails db:prepare:with_data
|
|
env:
|
|
RAILS_ENV: test
|
|
- name: Check typescript
|
|
run: yarn typecheck
|
|
- name: Compile assets
|
|
run: bundle exec rails assets:precompile
|
|
- name: Run tests
|
|
uses: paambaati/codeclimate-action@v8.0.0
|
|
with:
|
|
coverageCommand: bundle exec rake
|
|
env:
|
|
CC_TEST_REPORTER_ID: f570c8191542a0db2056d5994b06e9d0be35b25bc6897b5e913c1b783b920a0a
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/setup
|
|
- name: Lint Ruby code
|
|
run: bundle exec rake rubocop
|
|
- name: Lint ERB templates
|
|
run: bundle exec erblint --lint-all
|
|
- name: Lint Typescript code
|
|
run: yarn run lint:ts
|
|
i18n:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/setup
|
|
- name: Check translations
|
|
run: bundle exec i18n-tasks health -l en
|