Skip to content

Commit

Permalink
Add lint and test action
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmartian committed Dec 7, 2023
1 parent 7c3410c commit 8d508c2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ build-iPhoneSimulator/

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# JetBrains
.idea/**

0 comments on commit 8d508c2

Please sign in to comment.