Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

build(deps-dev): bump braces from 3.0.2 to 3.0.3 #568

build(deps-dev): bump braces from 3.0.2 to 3.0.3

build(deps-dev): bump braces from 3.0.2 to 3.0.3 #568

Workflow file for this run

name: main
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.0", "2.7", "2.6"]
rails-version: ["7.0", "6.1", "6.0" ]
exclude:
- ruby-version: 2.6
rails-version: 7.0
fail-fast: false
env:
BUNDLE_WITHOUT: 'development'
BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/rails_${{matrix.rails-version}}.gemfile"
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }} / Rails ${{ matrix.rails-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Read Node Version
id: node-version
run: |
version=$(cat .tool-versions| grep nodejs | cut -d' ' -f2)
echo "::set-output name=version::$version"
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '${{ steps.node-version.outputs.version }}'
cache: 'npm'
- name: Install Packages
uses: bahmutov/npm-install@v1
- name: Compile Assets
run: npm run build
- name: Setup DB πŸ—„οΈ
run: |
bin/rake db:test:prepare
- name: Run Tests βœ…
run: |
bin/rake spec
env:
COVERAGE: true
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
- name: Report Coverage
# We don't need to upload coverage multiple times, just do it for latest versions, and only on master
if: github.ref == 'refs/heads/main' && matrix.ruby-version == 3.0 && matrix.rails-version == 7.0
uses: paambaati/[email protected]
with:
coverageLocations: |
${{github.workspace}}/coverage/coverage.json:simplecov
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Read Node Version
id: node-version
run: |
version=$(cat .tool-versions| grep nodejs | cut -d' ' -f2)
echo "::set-output name=version::$version"
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '${{ steps.node-version.outputs.version }}'
cache: 'npm'
- name: Install Packages
uses: bahmutov/npm-install@v1
- name: Run RuboCop πŸš“
run: bundle exec rake rubocop
- name: Run JS Linter πŸ”Ž
run: npm run lint
- name: Run SCSS Linter ✨
run: npm run lint:scss
- name: Lint Commits πŸ“
uses: wagoid/commitlint-github-action@v5