From a834e5050b5df5a9d367ce08ed14c994e0142136 Mon Sep 17 00:00:00 2001 From: Kirill Platonov Date: Sun, 19 Mar 2023 11:05:15 +0400 Subject: [PATCH] Setup github actions for standardrb --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ Gemfile.lock | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..80b0858 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + pull_request: + branches: + - '*' + push: + branches: + - main + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + - name: StandardRb check + run: bundle exec standardrb diff --git a/Gemfile.lock b/Gemfile.lock index e5d2935..516f207 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -113,6 +113,8 @@ GEM nio4r (2.5.8) nokogiri (1.14.2-arm64-darwin) racc (~> 1.4) + nokogiri (1.14.2-x86_64-linux) + racc (~> 1.4) parallel (1.22.1) parser (3.2.1.1) ast (~> 2.4.1) @@ -187,6 +189,7 @@ PLATFORMS arm64-darwin-20 arm64-darwin-21 arm64-darwin-22 + x86_64-linux DEPENDENCIES hotwire-livereload!