Merge branch 'fix/PSD-3673-add_table_row_indices_for_screen_readers' … #1168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rubocop | |
on: [push] | |
jobs: | |
ruby: | |
name: "Ruby" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PostgreSQL client | |
run: sudo apt-get install libpq-dev | |
- name: Cache Gems | |
uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-no-dev-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
- name: install dependencies | |
run: | | |
gem install bundler --no-doc | |
bundle config path vendor/bundle | |
bundle check || bundle install --without development --jobs 4 --retry 3 | |
- name: Run code style checks | |
run: bundle exec rubocop | |
front_end: | |
name: "Javascript" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Nodejs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.15.x | |
- uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- name: Install npm dependencies | |
run: | | |
npm install yarn | |
yarn install | |
- name: Check javascript for code style | |
run: | | |
yarn lint:js | |
- name: Run SCSS linter | |
run: | | |
yarn lint:css |