From 6f5fa331e13ccfdf6ffc1ac4bb10384190c866a2 Mon Sep 17 00:00:00 2001 From: ydah Date: Thu, 30 Jan 2025 19:20:54 +0900 Subject: [PATCH 1/3] Update GitHub Actions workflow to use GitHub format for standardrb --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a78c832e..80b84403 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - run: bundle exec standardrb + - run: bundle exec standardrb --format github - run: bundle exec rake - run: bundle exec rake forked_tests - run: bundle exec rake benchmarks From a624cfca82da1e3bc5908e0d3cd01144169edd1a Mon Sep 17 00:00:00 2001 From: ydah Date: Fri, 31 Jan 2025 16:40:50 +0900 Subject: [PATCH 2/3] Ensure that the standardrb job is performed only once --- .github/workflows/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80b84403..ccf45c4b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,9 +37,17 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - run: bundle exec standardrb --format github - run: bundle exec rake - run: bundle exec rake forked_tests - run: bundle exec rake benchmarks - run: bundle exec rake benchmarks:memory - run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rake" + starndardrb: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec standardrb --format github From b0a4ca2d91ada5de9ff2e15b885d0d3a19ee575c Mon Sep 17 00:00:00 2001 From: ydah Date: Fri, 31 Jan 2025 16:47:11 +0900 Subject: [PATCH 3/3] Use rake test:all --- .github/workflows/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccf45c4b..1a9d3d78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,10 +37,7 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - run: bundle exec rake - - run: bundle exec rake forked_tests - - run: bundle exec rake benchmarks - - run: bundle exec rake benchmarks:memory + - run: bundle exec rake test:all - run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rake" starndardrb: runs-on: ubuntu-latest