From f352dd27fbeafbee683c8937775a741cec5ecbea Mon Sep 17 00:00:00 2001 From: Connor Martin Date: Thu, 7 Dec 2023 13:26:04 -0800 Subject: [PATCH] Add lint and test action --- .github/workflows/lint-and-test.yaml | 33 ++++++++++++++++++++++++++++ .gitignore | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/lint-and-test.yaml diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml new file mode 100644 index 0000000..e64f968 --- /dev/null +++ b/.github/workflows/lint-and-test.yaml @@ -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: ruby/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: ruby/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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 486d87b..0d9bb24 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,6 @@ build-iPhoneSimulator/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc + +# JetBrains +.idea/**