From 55ffed78ac231f58318b65e603f7fcc8ee92c327 Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Mon, 2 Sep 2024 19:10:04 +0530 Subject: [PATCH] Experiment --- .github/workflows/ci.yml | 65 +++++++++------------------------------- script/experiment.rb | 6 ++++ 2 files changed, 20 insertions(+), 51 deletions(-) create mode 100644 script/experiment.rb diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8675ac55b073..e2bd228a07ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,69 +2,32 @@ name: Continuous Integration on: push: - branches: - - master - - "*-stable" - pull_request: - branches: - - master - - "*-stable" jobs: ci: - name: "Run Tests (${{ matrix.label }})" - runs-on: "ubuntu-latest" + name: "Run Tests (${{ matrix.ruby.label }} on ${{ matrix.os.label }})" + runs-on: ${{ matrix.os.image }} strategy: fail-fast: false matrix: - include: + ruby: - label: Ruby 2.7 - ruby_version: "2.7" - - label: Ruby 3.0 - ruby_version: "3.0" - - label: Ruby 3.1 - ruby_version: "3.1" + version: "2.7" - label: Ruby 3.2 - ruby_version: "3.2" - - label: JRuby 9.4.8.0 - ruby_version: "jruby-9.4.8.0" - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - name: "Set up ${{ matrix.label }}" - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby_version }} - bundler-cache: true - - name: Run Minitest based tests - run: bash script/test - - name: Run Cucumber based tests - run: bash script/cucumber - - name: Generate and Build a new site - run: bash script/default-site + version: "3.2" + os: + - label: Linux + image: "ubuntu-latest" + - label: Windows + image: "windows-latest" - xtras: - name: "${{ matrix.job_name }} (Ruby ${{ matrix.ruby_version }})" - runs-on: "ubuntu-latest" - strategy: - fail-fast: false - matrix: - include: - - job_name: "Profile Docs Site" - step_name: "Build and Profile docs site" - script_file: "profile-docs" - ruby_version: "2.7" - - job_name: "Style Check" - step_name: "Run RuboCop" - script_file: "fmt" - ruby_version: "2.7" steps: - name: Checkout Repository uses: actions/checkout@v4 - - name: "Set up Ruby ${{ matrix.ruby_version }}" + - name: "Set up ${{ matrix.ruby.label }}" uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby_version }} + ruby-version: ${{ matrix.ruby.version }} bundler-cache: true - - name: ${{ matrix.step_name }} - run: bash script/${{ matrix.script_file }} + - name: Run Experiment + run: bundle exec ruby script/experiment.rb diff --git a/script/experiment.rb b/script/experiment.rb new file mode 100644 index 000000000000..3955cc07915d --- /dev/null +++ b/script/experiment.rb @@ -0,0 +1,6 @@ +#!/usr/bin/env ruby + +path = File.expand_path("test/source/_methods") +Dir.each_child(path) do |entry| + p File.realpath(entry, path) +end