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

Merge pull request #213 from RocketChat/dependabot/npm_and_yarn/dot-s… #1166

Merge pull request #213 from RocketChat/dependabot/npm_and_yarn/dot-s…

Merge pull request #213 from RocketChat/dependabot/npm_and_yarn/dot-s… #1166

name: Build and test with Rake
on: [push]
# env:
# NOKOGIRI_USE_SYSTEM_LIBRARIES: true # speeds up installation of html-proofer
jobs:
build:
# Disable build step since it's old and not working
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: actions/cache@v1
id: gem-cache
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --deployment
- name: Lint
run: |
bundle exec mdl ./ -r ~MD004 -i -g
- name: Build and test with Rake
run: |
bundle exec "rake test"
validate-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.22.1
uses: actions/setup-node@v2
with:
node-version: "12.22.1"
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v2
with:
path: .scripts/doctor/node_modules
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json', '.github/workflows/build_and_test.yml') }}
- name: Install dependencies
run: |
cd .scripts/doctor
npm i
- name: Validate
run: |
cd .scripts/doctor
npm start