Rails 8; Ruby 3.4; gem updates; package updates #24
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
unit: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: 20.x | |
- name: Install dependencies | |
run: yarn install | |
- name: Type check | |
run: yarn type-check | |
- name: Run unit tests | |
run: yarn test:unit | |
lint: | |
name: Linters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: 20.x | |
- name: Install dependencies | |
run: yarn install | |
- name: Run ESLint | |
run: yarn lint | |
- name: Run Stylelint | |
run: npx stylelint src/**/*.css src/**/*.vue src/**/*.scss |