Skip to content

Add lint and test action #1

Add lint and test action

Add lint and test action #1

Workflow file for this run

name: Lint and Test
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install dependencies
run: |
bundle install --jobs 4 --retry 3
- name: Lint with Rubocop
run: |
bundle exec rubocop --parallel
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
node-version: 2.1
- name: Install dependencies
run: |
bundle install --jobs 4 --retry 3
- name: Test octofacts
run: |
bundle exec rake octofacts:spec:octofacts
- name: Test octofacts_updater
run: |
bundle exec rake octofacts:spec:octofacts_updater