Skip to content

Move JavaScript Controllers to javascript Folder, Configure ESLint, and Create rbui-js NPM Package #34

Move JavaScript Controllers to javascript Folder, Configure ESLint, and Create rbui-js NPM Package

Move JavaScript Controllers to javascript Folder, Configure ESLint, and Create rbui-js NPM Package #34

Workflow file for this run

name: CI
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
standard:
name: StandardRB Check Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec standardrb --format progress
eslint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
cache-dependency-path: ./javascript/package-lock.json
- name: Install packages
run: yarn install --immutable
working-directory: ./javascript
- name: Run ESLint
run: yarn eslint .
working-directory: ./javascript
tests:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
ruby-version:
- "3.2"
- "3.3"
- "head"
name: Running minitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: false
- run: bundle install
- run: bundle exec rake test