From c3f66ecda3e437af8a33e88e2183ccfbf4952f6c Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 10 Aug 2023 11:35:05 +0200 Subject: [PATCH 01/32] Pin GHA workflows (#103) --- .github/workflows/rubocop.yml | 3 ++- .github/workflows/tests.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index c7088ed..2daec0c 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -11,7 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - name: Set up Ruby uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5171b5a..21e4131 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,8 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - # Checkout using GitHub's checkout action - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # Setup Ruby - this needs to match the version in the Gemfile - name: Set up Ruby From 4b9c2bf91feb5bbe9344814d032bfcac4bb14d09 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 10 Aug 2023 11:35:15 +0200 Subject: [PATCH 02/32] Pin GHA runners (#104) --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 2daec0c..90b7470 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -8,7 +8,7 @@ on: jobs: rubocop: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 21e4131..c237517 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code From 524baffe6a559ef887d2d787165f76308491eedd Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 10 Aug 2023 11:35:25 +0200 Subject: [PATCH 03/32] Remove deprecated tooling webserver (#102) --- Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 027c968..ab503a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,6 @@ RUN apk update && apk upgrade && \ apk add --no-cache bash git openssh && \ apk add build-base gcc wget git -RUN wget -P /usr/local/bin https://github.com/exercism/tooling-webserver/releases/latest/download/tooling_webserver && \ - chmod +x /usr/local/bin/tooling_webserver - WORKDIR /opt/test-runner COPY Gemfile Gemfile.lock ./ From c15c20e6ef25ec10c60178d0b857743fdc056f88 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 10 Aug 2023 11:53:02 +0200 Subject: [PATCH 04/32] Fix rubocop (#105) --- .github/workflows/rubocop.yml | 13 ++++++++---- .github/workflows/tests.yml | 3 +-- Gemfile.lock | 37 +++++++++++++++++++++-------------- bin/rubocop-quick | 2 +- 4 files changed, 33 insertions(+), 22 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 90b7470..f07b2d4 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -17,14 +17,19 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 with: - ruby-version: 3.0.2 + ruby-version: .ruby-version bundler-cache: true - name: Install gems run: | - gem install rubocop - gem install rubocop-minitest - gem install rubocop-performance + # Extract the exact versions of the rubocop gems from Gemfile.lock + rubocop_version=$(sed -n -E 's/^ rubocop \((.+)\)/\1/p' Gemfile.lock) + rubocop_minitest_version=$(sed -n -E 's/^ rubocop-minitest \((.+)\)/\1/p' Gemfile.lock) + rubocop_performance_version=$(sed -n -E 's/^ rubocop-performance \((.+)\)/\1/p' Gemfile.lock) + + gem install rubocop -v $rubocop_version + gem install rubocop-minitest -v $rubocop_minitest_version + gem install rubocop-performance -v $rubocop_performance_version - name: Run Rubocop run: rubocop --except Metrics diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c237517..35358f9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,11 +14,10 @@ jobs: - name: Checkout code uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - # Setup Ruby - this needs to match the version in the Gemfile - name: Set up Ruby uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 with: - ruby-version: 3.0.2 + ruby-version: .ruby-version bundler-cache: true # Setup code climate diff --git a/Gemfile.lock b/Gemfile.lock index 8b2d26c..8b368d9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,45 +2,52 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) + base64 (0.1.1) coderay (1.1.3) docile (1.3.2) json (2.6.1) + language_server-protocol (3.17.0.3) mandate (1.0.0) method_source (1.0.0) minitest (5.11.3) mocha (1.11.2) - parallel (1.19.2) - parser (3.0.2.0) + parallel (1.23.0) + parser (3.2.2.3) ast (~> 2.4.1) + racc pry (0.13.1) coderay (~> 1.1) method_source (~> 1.0) - rainbow (3.0.0) + racc (1.7.1) + rainbow (3.1.1) rake (12.3.3) - regexp_parser (1.8.2) - rexml (3.2.4) - rubocop (0.90.0) + regexp_parser (2.8.1) + rexml (3.2.6) + rubocop (1.56.0) + base64 (~> 0.1.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 2.7.1.1) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) - rexml - rubocop-ast (>= 0.3.0, < 1.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (0.3.0) - parser (>= 2.7.1.4) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) rubocop-minitest (0.10.1) rubocop (>= 0.87) rubocop-performance (1.8.0) rubocop (>= 0.87.0) - ruby-progressbar (1.10.1) + ruby-progressbar (1.13.0) simplecov (0.17.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - unicode-display_width (1.7.0) + unicode-display_width (2.4.2) PLATFORMS ruby diff --git a/bin/rubocop-quick b/bin/rubocop-quick index b06f706..f0cdd56 100755 --- a/bin/rubocop-quick +++ b/bin/rubocop-quick @@ -1,4 +1,4 @@ #!/bin/bash -git diff --name-status --staged | grep '^[MA]' | grep -o '\s\+.*rb' | xargs bundle exec rubocop --except Metrics --auto-correct --format quiet --force-exclusion Gemfile && \ +git diff --name-status --staged | grep '^[MA]' | grep -o '\s\+.*rb' | xargs bundle exec rubocop --except Metrics --autocorrect --format quiet --force-exclusion Gemfile && \ git diff --name-status --staged | grep '^[MA]' | grep -o '\s\+.*rb' | xargs git add From e413fa943993402415500967c919f672de15dfbc Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 11 Aug 2023 16:02:39 +0200 Subject: [PATCH 05/32] Convert Ruby tests to smoke tests (#101) * Convert Ruby tests to smoke tests * Fix newlines * Apply suggestions from code review Co-authored-by: Victor Goff * Fix rubocop * Restore tests * Reduce image size (#106) From 314 MB to 71 MB * Fix rubocop --------- Co-authored-by: Victor Goff --- .dockerignore | 4 ++ .github/workflows/tests.yml | 49 ++++++++----------- .gitignore | 1 + .rubocop.yml | 21 +++++++- Dockerfile | 16 ++++-- bin/run-in-docker.sh | 46 +++++++++++++++++ bin/run-tests-in-docker.sh | 31 ++++++++++++ bin/run-tests.sh | 42 ++++++++++++++++ lib/write_report.rb | 2 +- .../attack_large_output/expected_results.json | 1 + tests/deep_exception/expected_results.json | 1 + tests/deep_exception/input/two_fer.rb | 10 ++++ tests/deep_exception/input/two_fer_test.rb | 9 ++++ tests/empty/expected_results.json | 1 + tests/empty/two_fer.rb | 0 tests/empty/two_fer_test.rb | 9 ++++ tests/exception/expected_results.json | 1 + tests/exception/input/two_fer_test.rb | 3 ++ tests/fail/expected_results.json | 1 + tests/fail/input/two_fer.rb | 8 +++ tests/fail/input/two_fer_test.rb | 21 ++++++++ tests/input/expected_results.json | 1 + tests/input/two_fer.rb | 6 +++ tests/input/two_fer_test.rb | 9 ++++ tests/metadata/assert_equal.rb | 6 +++ tests/metadata/expected_results.json | 1 + tests/metadata/indices.rb | 21 ++++++++ tests/metadata/skip.rb | 8 +++ tests/metadata/skip_comment.rb | 11 +++++ tests/pass/expected_results.json | 1 + tests/pass/input/two_fer.rb | 5 ++ tests/pass/input/two_fer_test.rb | 20 ++++++++ .../pass_ruby_3_syntax/expected_results.json | 1 + .../pass_ruby_3_syntax/input/ruby_3_syntax.rb | 10 ++++ .../input/ruby_3_syntax_test.rb | 14 ++++++ .../expected_results.json | 1 + tests/syntax_error_in_code/input/two_fer.rb | 2 + .../input/two_fer_test.rb | 20 ++++++++ .../expected_results.json | 1 + .../input/two_fer_test.rb | 3 ++ 40 files changed, 382 insertions(+), 36 deletions(-) create mode 100755 bin/run-in-docker.sh create mode 100755 bin/run-tests-in-docker.sh create mode 100755 bin/run-tests.sh create mode 100644 tests/attack_large_output/expected_results.json create mode 100644 tests/deep_exception/expected_results.json create mode 100644 tests/deep_exception/input/two_fer.rb create mode 100644 tests/deep_exception/input/two_fer_test.rb create mode 100644 tests/empty/expected_results.json create mode 100644 tests/empty/two_fer.rb create mode 100644 tests/empty/two_fer_test.rb create mode 100644 tests/exception/expected_results.json create mode 100644 tests/exception/input/two_fer_test.rb create mode 100644 tests/fail/expected_results.json create mode 100644 tests/fail/input/two_fer.rb create mode 100644 tests/fail/input/two_fer_test.rb create mode 100644 tests/input/expected_results.json create mode 100644 tests/input/two_fer.rb create mode 100644 tests/input/two_fer_test.rb create mode 100644 tests/metadata/assert_equal.rb create mode 100644 tests/metadata/expected_results.json create mode 100644 tests/metadata/indices.rb create mode 100644 tests/metadata/skip.rb create mode 100644 tests/metadata/skip_comment.rb create mode 100644 tests/pass/expected_results.json create mode 100644 tests/pass/input/two_fer.rb create mode 100644 tests/pass/input/two_fer_test.rb create mode 100644 tests/pass_ruby_3_syntax/expected_results.json create mode 100644 tests/pass_ruby_3_syntax/input/ruby_3_syntax.rb create mode 100644 tests/pass_ruby_3_syntax/input/ruby_3_syntax_test.rb create mode 100644 tests/syntax_error_in_code/expected_results.json create mode 100644 tests/syntax_error_in_code/input/two_fer.rb create mode 100644 tests/syntax_error_in_code/input/two_fer_test.rb create mode 100644 tests/syntax_error_in_tests/expected_results.json create mode 100644 tests/syntax_error_in_tests/input/two_fer_test.rb diff --git a/.dockerignore b/.dockerignore index 46f2d1d..fa47e8f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,6 @@ +bin/ test/ +tests/ node_modules/ .appends .git @@ -7,3 +9,5 @@ node_modules/ .gitattributes .dockerignore Dockerfile +!bin/run.sh +!bin/run.rb diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 35358f9..8bf7e66 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,45 +1,36 @@ name: Tests on: - push: - branches: [main] pull_request: - branches: [main] + branches: + - main + push: + branches: + - main jobs: test: + name: Tests runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 - - name: Set up Ruby - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 with: - ruby-version: .ruby-version - bundler-cache: true + install: true - # Setup code climate - - name: Setup Code Climate test-reporter - run: | - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build - - # Run the tests - - name: Run Ruby tests - env: - CAPTURE_CODE_COVERAGE: true - run: | - bundle exec rake test - ./cc-test-reporter format-coverage -t simplecov -o codeclimate.backend.json coverage/backend/.resultset.json + - name: Build Docker image and store in cache + uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 + with: + context: . + push: false + load: true + tags: exercism/ruby-test-runner + cache-from: type=gha + cache-to: type=gha,mode=max - # Publish the coverage to CodeClimate - - name: Publish code coverage - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - env: - GIT_BRANCH: ${GITHUB_REF/refs\/heads\//} - CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} - run: | - ./cc-test-reporter upload-coverage -i codeclimate.*.json + - name: Run Tests in Docker + run: bin/run-tests-in-docker.sh diff --git a/.gitignore b/.gitignore index c2658d7..4c4081f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +tests/**/results.json diff --git a/.rubocop.yml b/.rubocop.yml index ee11945..953899f 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,7 +8,10 @@ AllCops: - "bin/**/*" - "Gemfile" - "Gemfile.lock" - - "test/fixtures/**/*" + - "test/fixtures**/*" + - "test/fixtures/syntax_error_in_code/input/two_fer.rb" + - "test/fixtures/syntax_error_in_tests/input/two_fer_test.rb" + - "tests/**/*" - "vendor/**/*" Bundler/OrderedGems: @@ -30,6 +33,18 @@ Layout/MultilineMethodCallIndentation: Layout/EmptyLinesAroundAccessModifier: EnforcedStyle: only_before +Layout/TrailingEmptyLines: + Exclude: + - "test/**/*" + +Layout/CommentIndentation: + Exclude: + - "test/**/*" + +Layout/LeadingCommentSpace: + Exclude: + - "test/**/*" + Lint/SuppressedException: Exclude: - "test/**/*" @@ -81,3 +96,7 @@ Naming/VariableNumber: Style/LambdaCall: EnforcedStyle: braces + +Style/RedundantReturn: + Exclude: + - "test/**/*" diff --git a/Dockerfile b/Dockerfile index ab503a5..ba1f75b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,22 @@ -FROM ruby:3.0.2-alpine +FROM ruby:3.0.2-alpine AS build RUN apk update && apk upgrade && \ - apk add --no-cache bash git openssh && \ - apk add build-base gcc wget git + apk add --no-cache git openssh build-base gcc wget git -WORKDIR /opt/test-runner +COPY Gemfile Gemfile.lock . -COPY Gemfile Gemfile.lock ./ RUN gem install bundler:2.2.29 && \ bundle config set without 'development test' && \ bundle install +FROM ruby:3.0.2-alpine + +RUN apk add --no-cache bash + +WORKDIR /opt/test-runner + +COPY --from=build /usr/local/bundle /usr/local/bundle + COPY . . ENTRYPOINT [ "sh", "/opt/test-runner/bin/run.sh" ] diff --git a/bin/run-in-docker.sh b/bin/run-in-docker.sh new file mode 100755 index 0000000..b4d284f --- /dev/null +++ b/bin/run-in-docker.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env sh + +# Synopsis: +# Run the test runner on a solution using the test runner Docker image. +# The test runner Docker image is built automatically. + +# Arguments: +# $1: exercise slug +# $2: path to solution folder +# $3: path to output directory + +# Output: +# Writes the test results to a results.json file in the passed-in output directory. +# The test results are formatted according to the specifications at https://github.com/exercism/docs/blob/main/building/tooling/test-runners/interface.md + +# Example: +# ./bin/run-in-docker.sh two-fer path/to/solution/folder/ path/to/output/directory/ + +# Stop executing when a command returns a non-zero return code +set -e + +# If any required arguments is missing, print the usage and exit +if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then + echo "usage: ./bin/run-in-docker.sh exercise-slug path/to/solution/folder/ path/to/output/directory/" + exit 1 +fi + +slug="$1" +solution_dir=$(realpath "${2%/}") +output_dir=$(realpath "${3%/}") + +# Create the output directory if it doesn't exist +mkdir -p "${output_dir}" + +# Build the Docker image +docker build --rm -t exercism/ruby-test-runner . + +# Run the Docker image using the settings mimicking the production environment +docker run \ + --rm \ + --network none \ + --read-only \ + --mount type=bind,src="${solution_dir}",dst=/solution \ + --mount type=bind,src="${output_dir}",dst=/output \ + --mount type=tmpfs,dst=/tmp \ + exercism/ruby-test-runner "${slug}" /solution /output diff --git a/bin/run-tests-in-docker.sh b/bin/run-tests-in-docker.sh new file mode 100755 index 0000000..ecc350b --- /dev/null +++ b/bin/run-tests-in-docker.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env sh + +# Synopsis: +# Test the test runner Docker image by running it against a predefined set of +# solutions with an expected output. +# The test runner Docker image is built automatically. + +# Output: +# Outputs the diff of the expected test results against the actual test results +# generated by the test runner Docker image. + +# Example: +# ./bin/run-tests-in-docker.sh + +# Stop executing when a command returns a non-zero return code +set -e + +# Build the Docker image +docker build --rm -t exercism/ruby-test-runner . + +# Run the Docker image using the settings mimicking the production environment +docker run \ + --rm \ + --network none \ + --read-only \ + --mount type=bind,src="${PWD}/tests",dst=/opt/test-runner/tests \ + --mount type=tmpfs,dst=/tmp \ + --volume "${PWD}/bin/run-tests.sh:/opt/test-runner/bin/run-tests.sh" \ + --workdir /opt/test-runner \ + --entrypoint /opt/test-runner/bin/run-tests.sh \ + exercism/ruby-test-runner diff --git a/bin/run-tests.sh b/bin/run-tests.sh new file mode 100755 index 0000000..5676be7 --- /dev/null +++ b/bin/run-tests.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env sh + +# Synopsis: +# Test the test runner by running it against a predefined set of solutions +# with an expected output. + +# Output: +# Outputs the diff of the expected test results against the actual test results +# generated by the test runner. + +# Example: +# ./bin/run-tests.sh + +exit_code=0 + +# Iterate over all test directories +for test_dir in tests/*; do + test_dir_name=$(basename "${test_dir}") + test_dir_path=$(realpath "${test_dir}") + results_file_path="${test_dir_path}/results.json" + expected_results_file_path="${test_dir_path}/expected_results.json" + + bin/run.sh "${test_dir_name}" "${test_dir_path}" "${test_dir_path}" + + # OPTIONAL: Normalize the results file + # If the results.json file contains information that changes between + # different test runs (e.g. timing information or paths), you should normalize + # the results file to allow the diff comparison below to work as expected + # sed -i -E \ + # -e 's/Elapsed time: [0-9]+\.[0-9]+ seconds//g' \ + # -e "s~${test_dir_path}~/solution~g" \ + # "${results_file_path}" + + echo "${test_dir_name}: comparing results.json to expected_results.json" + diff "${results_file_path}" "${expected_results_file_path}" + + if [ $? -ne 0 ]; then + exit_code=1 + fi +done + +exit ${exit_code} diff --git a/lib/write_report.rb b/lib/write_report.rb index 4729ca6..4aa9464 100644 --- a/lib/write_report.rb +++ b/lib/write_report.rb @@ -10,7 +10,7 @@ def initialize(path, status, tests: [], message: nil) end def call - File.write("#{path}/results.json", json) + File.write("#{path}/results.json", "#{json}\n") end private diff --git a/tests/attack_large_output/expected_results.json b/tests/attack_large_output/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/attack_large_output/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/deep_exception/expected_results.json b/tests/deep_exception/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/deep_exception/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/deep_exception/input/two_fer.rb b/tests/deep_exception/input/two_fer.rb new file mode 100644 index 0000000..d93e74d --- /dev/null +++ b/tests/deep_exception/input/two_fer.rb @@ -0,0 +1,10 @@ +module TwoFer + def self.two_fer(name = nil) + "One for #{work_out_name(name)}, one for me" + end + + def self.work_out_name(name) + # raise "FoobaR" + name.non_existant_method + end +end diff --git a/tests/deep_exception/input/two_fer_test.rb b/tests/deep_exception/input/two_fer_test.rb new file mode 100644 index 0000000..a41ad59 --- /dev/null +++ b/tests/deep_exception/input/two_fer_test.rb @@ -0,0 +1,9 @@ +require 'minitest/autorun' +require_relative 'two_fer' + +# Common test data version: 1.2.0 4fc1acb +class TwoFerTest < Minitest::Test + def test_no_name_given + assert_equal "One for you, one for me.", TwoFer.two_fer + end +end diff --git a/tests/empty/expected_results.json b/tests/empty/expected_results.json new file mode 100644 index 0000000..c880a92 --- /dev/null +++ b/tests/empty/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"fail","message":null,"tests":[{"name":"No name given","test_code":"assert_equal \"One for you, one for me.\", TwoFer.two_fer","status":"error","message":"NameError: uninitialized constant TwoFerTest::TwoFer\n\nTraceback (most recent call first):\n Line 7:in `test_no_name_given'"}]} diff --git a/tests/empty/two_fer.rb b/tests/empty/two_fer.rb new file mode 100644 index 0000000..e69de29 diff --git a/tests/empty/two_fer_test.rb b/tests/empty/two_fer_test.rb new file mode 100644 index 0000000..a41ad59 --- /dev/null +++ b/tests/empty/two_fer_test.rb @@ -0,0 +1,9 @@ +require 'minitest/autorun' +require_relative 'two_fer' + +# Common test data version: 1.2.0 4fc1acb +class TwoFerTest < Minitest::Test + def test_no_name_given + assert_equal "One for you, one for me.", TwoFer.two_fer + end +end diff --git a/tests/exception/expected_results.json b/tests/exception/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/exception/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/exception/input/two_fer_test.rb b/tests/exception/input/two_fer_test.rb new file mode 100644 index 0000000..8e24c5e --- /dev/null +++ b/tests/exception/input/two_fer_test.rb @@ -0,0 +1,3 @@ +require 'minitest/autorun' + +raise_an_error_because_i_am_a_random_method diff --git a/tests/fail/expected_results.json b/tests/fail/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/fail/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/fail/input/two_fer.rb b/tests/fail/input/two_fer.rb new file mode 100644 index 0000000..2edbdfa --- /dev/null +++ b/tests/fail/input/two_fer.rb @@ -0,0 +1,8 @@ +class TwoFer + def self.two_fer(name = "fred") + debug "The name is #{name}." + debug "Here's another line." + + "One for #{name}, one for me." + end +end diff --git a/tests/fail/input/two_fer_test.rb b/tests/fail/input/two_fer_test.rb new file mode 100644 index 0000000..6023382 --- /dev/null +++ b/tests/fail/input/two_fer_test.rb @@ -0,0 +1,21 @@ +require 'minitest/autorun' +require_relative 'two_fer' + +# Common test data version: 1.2.0 4fc1acb +class TwoFerTest < Minitest::Test + def test_no_name_given + # skip + assert_equal "One for you, one for me.", TwoFer.two_fer + end + + def test_a_name_given + skip + assert_equal "One for Alice, one for me.", TwoFer.two_fer("Alice") + end + + def test_another_name_given + skip + assert_equal "One for Bob, one for me.", TwoFer.two_fer("Bob") + end +end + diff --git a/tests/input/expected_results.json b/tests/input/expected_results.json new file mode 100644 index 0000000..ad1c9e6 --- /dev/null +++ b/tests/input/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"fail","message":null,"tests":[{"name":"No name given","test_code":"assert_equal \"One for you, one for me.\", TwoFer.two_fer","status":"fail","output":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n\n...Output was truncated. Please limit to 500 chars...","message":"Expected: \"One for you, one for me.\"\n Actual: false"}]} diff --git a/tests/input/two_fer.rb b/tests/input/two_fer.rb new file mode 100644 index 0000000..9fef9b3 --- /dev/null +++ b/tests/input/two_fer.rb @@ -0,0 +1,6 @@ +class TwoFer + def self.two_fer(_name = "you") + debug Array.new(1000) { "a" }.join + false + end +end diff --git a/tests/input/two_fer_test.rb b/tests/input/two_fer_test.rb new file mode 100644 index 0000000..a41ad59 --- /dev/null +++ b/tests/input/two_fer_test.rb @@ -0,0 +1,9 @@ +require 'minitest/autorun' +require_relative 'two_fer' + +# Common test data version: 1.2.0 4fc1acb +class TwoFerTest < Minitest::Test + def test_no_name_given + assert_equal "One for you, one for me.", TwoFer.two_fer + end +end diff --git a/tests/metadata/assert_equal.rb b/tests/metadata/assert_equal.rb new file mode 100644 index 0000000..f3e1324 --- /dev/null +++ b/tests/metadata/assert_equal.rb @@ -0,0 +1,6 @@ +class SomeTest < Minitest::Test + def test_assert_equal_works_properly + some_result = TwoFer.two_fer + assert_equal "One for you, one for me.", some_result + end +end diff --git a/tests/metadata/expected_results.json b/tests/metadata/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/metadata/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/metadata/indices.rb b/tests/metadata/indices.rb new file mode 100644 index 0000000..77046dd --- /dev/null +++ b/tests/metadata/indices.rb @@ -0,0 +1,21 @@ +class SomeTest < Minitest::Test + def test_zebra + some_result = TwoFer.two_fer("zebra") + assert_equal "One for you, one for zebra.", some_result + end + + def test_anaconda + some_result = TwoFer.two_fer("anaconda") + assert_equal "One for you, one for anaconda.", some_result + end + + def test_gorilla + some_result = TwoFer.two_fer("gorilla") + assert_equal "One for you, one for gorilla.", some_result + end + + def test_boa + some_result = TwoFer.two_fer("boa") + assert_equal "One for you, one for boa.", some_result + end +end diff --git a/tests/metadata/skip.rb b/tests/metadata/skip.rb new file mode 100644 index 0000000..4395e78 --- /dev/null +++ b/tests/metadata/skip.rb @@ -0,0 +1,8 @@ +class SomeTest < Minitest::Test + def test_skip_works_properly + skip + something = "Something" + assert something.present? + end +end + diff --git a/tests/metadata/skip_comment.rb b/tests/metadata/skip_comment.rb new file mode 100644 index 0000000..0957860 --- /dev/null +++ b/tests/metadata/skip_comment.rb @@ -0,0 +1,11 @@ +class SomeTest < Minitest::Test + def test_skip_works_properly + #skip + # skip + something = "Something" + assert something.present? + # skip + end +end + + diff --git a/tests/pass/expected_results.json b/tests/pass/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/pass/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/pass/input/two_fer.rb b/tests/pass/input/two_fer.rb new file mode 100644 index 0000000..72ac309 --- /dev/null +++ b/tests/pass/input/two_fer.rb @@ -0,0 +1,5 @@ +class TwoFer + def self.two_fer(name = "you") + "One for #{name}, one for me." + end +end diff --git a/tests/pass/input/two_fer_test.rb b/tests/pass/input/two_fer_test.rb new file mode 100644 index 0000000..1d91d07 --- /dev/null +++ b/tests/pass/input/two_fer_test.rb @@ -0,0 +1,20 @@ +require 'minitest/autorun' +require_relative 'two_fer' + +# Common test data version: 1.2.0 4fc1acb +class TwoFerTest < Minitest::Test + def test_no_name_given + # skip + assert_equal "One for you, one for me.", TwoFer.two_fer + end + + def test_a_name_given + skip + assert_equal "One for Alice, one for me.", TwoFer.two_fer("Alice") + end + + def test_another_name_given + skip + assert_equal "One for Bob, one for me.", TwoFer.two_fer("Bob") + end +end diff --git a/tests/pass_ruby_3_syntax/expected_results.json b/tests/pass_ruby_3_syntax/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/pass_ruby_3_syntax/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/pass_ruby_3_syntax/input/ruby_3_syntax.rb b/tests/pass_ruby_3_syntax/input/ruby_3_syntax.rb new file mode 100644 index 0000000..bc4f1fb --- /dev/null +++ b/tests/pass_ruby_3_syntax/input/ruby_3_syntax.rb @@ -0,0 +1,10 @@ +# See section "Other Notable New Features" +# in https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/ +class Ruby3Syntax + def self.rightward_assign + 'is fun' => exercism + return exercism + end + + def self.endless_methods = 'are fun' +end diff --git a/tests/pass_ruby_3_syntax/input/ruby_3_syntax_test.rb b/tests/pass_ruby_3_syntax/input/ruby_3_syntax_test.rb new file mode 100644 index 0000000..507ad46 --- /dev/null +++ b/tests/pass_ruby_3_syntax/input/ruby_3_syntax_test.rb @@ -0,0 +1,14 @@ +require 'minitest/autorun' +require_relative 'ruby_3_syntax' + +# minimal set of: +# Common test data version: 1.6.0 42b9d45 +class Ruby3SyntaxTest < Minitest::Test + def test_rightward_assign + assert_equal Ruby3Syntax.rightward_assign, 'is fun' + end + + def test_endless_method_def + assert_equal Ruby3Syntax.endless_methods, 'are fun' + end +end diff --git a/tests/syntax_error_in_code/expected_results.json b/tests/syntax_error_in_code/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/syntax_error_in_code/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/syntax_error_in_code/input/two_fer.rb b/tests/syntax_error_in_code/input/two_fer.rb new file mode 100644 index 0000000..a489a51 --- /dev/null +++ b/tests/syntax_error_in_code/input/two_fer.rb @@ -0,0 +1,2 @@ +module TwoFer +end,A stray comma diff --git a/tests/syntax_error_in_code/input/two_fer_test.rb b/tests/syntax_error_in_code/input/two_fer_test.rb new file mode 100644 index 0000000..1d91d07 --- /dev/null +++ b/tests/syntax_error_in_code/input/two_fer_test.rb @@ -0,0 +1,20 @@ +require 'minitest/autorun' +require_relative 'two_fer' + +# Common test data version: 1.2.0 4fc1acb +class TwoFerTest < Minitest::Test + def test_no_name_given + # skip + assert_equal "One for you, one for me.", TwoFer.two_fer + end + + def test_a_name_given + skip + assert_equal "One for Alice, one for me.", TwoFer.two_fer("Alice") + end + + def test_another_name_given + skip + assert_equal "One for Bob, one for me.", TwoFer.two_fer("Bob") + end +end diff --git a/tests/syntax_error_in_tests/expected_results.json b/tests/syntax_error_in_tests/expected_results.json new file mode 100644 index 0000000..17e441c --- /dev/null +++ b/tests/syntax_error_in_tests/expected_results.json @@ -0,0 +1 @@ +{"version":2,"status":"pass","message":null,"tests":[]} diff --git a/tests/syntax_error_in_tests/input/two_fer_test.rb b/tests/syntax_error_in_tests/input/two_fer_test.rb new file mode 100644 index 0000000..9ac391a --- /dev/null +++ b/tests/syntax_error_in_tests/input/two_fer_test.rb @@ -0,0 +1,3 @@ +require 'minitest/autorun' + +,'This is meant to be a syntax error' From 15c7ba93cd6c8b5a876985ea033d4027c494136e Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 15 Aug 2023 09:14:27 +0200 Subject: [PATCH 06/32] Bump to Ruby 3.2.2 (#107) * Bump to Ruby 3.2.2 * Fix Rubocop * rubocop corrections for ruby version bump (#108) * Adjustment to Bump to Ruby 3.2.2 #107 Corrects the Rubocop Advices * Delete 45.patch --------- Co-authored-by: Erik Schierboom --------- Co-authored-by: Victor Goff --- .ruby-version | 2 +- Dockerfile | 6 +++--- Gemfile | 2 +- Gemfile.lock | 4 ++-- lib/extract_test_metadata.rb | 4 ++-- lib/minitest_ext/exercism_reporter.rb | 4 ++-- lib/write_report.rb | 6 +++--- test/test_runner_test.rb | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.ruby-version b/.ruby-version index 4efbd8f..9e79f6c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-3.0.2 +ruby-3.2.2 diff --git a/Dockerfile b/Dockerfile index ba1f75b..56af0b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM ruby:3.0.2-alpine AS build +FROM ruby:3.2.2-alpine3.18 AS build RUN apk update && apk upgrade && \ apk add --no-cache git openssh build-base gcc wget git COPY Gemfile Gemfile.lock . -RUN gem install bundler:2.2.29 && \ +RUN gem install bundler:2.4.18 && \ bundle config set without 'development test' && \ bundle install -FROM ruby:3.0.2-alpine +FROM ruby:3.2.2-alpine3.18 RUN apk add --no-cache bash diff --git a/Gemfile b/Gemfile index 76f9811..080fd6d 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,7 @@ git_source(:github) do |repo_name| "https://github.com/#{repo_name}.git" end -ruby '3.0.2' +ruby '3.2.2' gem "mandate", "~> 1.0.0" gem 'rake' diff --git a/Gemfile.lock b/Gemfile.lock index 8b368d9..fbc1bca 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -67,7 +67,7 @@ DEPENDENCIES simplecov (~> 0.17.0) RUBY VERSION - ruby 3.0.2p107 + ruby 3.2.2p53 BUNDLED WITH - 2.2.29 + 2.4.18 diff --git a/lib/extract_test_metadata.rb b/lib/extract_test_metadata.rb index 4ba9fe5..ddde9d2 100644 --- a/lib/extract_test_metadata.rb +++ b/lib/extract_test_metadata.rb @@ -18,8 +18,8 @@ def call { test: test_identifier, name: test_name, - test_code: test_code, - index: index + test_code:, + index: } end diff --git a/lib/minitest_ext/exercism_reporter.rb b/lib/minitest_ext/exercism_reporter.rb index 055763a..d62135a 100644 --- a/lib/minitest_ext/exercism_reporter.rb +++ b/lib/minitest_ext/exercism_reporter.rb @@ -43,7 +43,7 @@ def exception_raised!(e) ExtractStandardExceptionErrorMessage.(e) end - write_report(:error, message: message) + write_report(:error, message:) end def report_written? @@ -71,7 +71,7 @@ def initialize(exercise, path) def write_report(status, tests: nil, message: nil) return if report_written? - TestRunner::WriteReport.(path, status, tests: tests, message: message) + TestRunner::WriteReport.(path, status, tests:, message:) @report_written = true end diff --git a/lib/write_report.rb b/lib/write_report.rb index 4aa9464..e020e39 100644 --- a/lib/write_report.rb +++ b/lib/write_report.rb @@ -19,9 +19,9 @@ def call def json { version: 2, - status: status, - message: message, - tests: tests + status:, + message:, + tests: }.to_json end end diff --git a/test/test_runner_test.rb b/test/test_runner_test.rb index c868a68..d3356fd 100644 --- a/test/test_runner_test.rb +++ b/test/test_runner_test.rb @@ -103,7 +103,7 @@ def test_deep_exception name: "No name given", test_code: 'assert_equal "One for you, one for me.", TwoFer.two_fer', status: :error, - message: message + message: } ] } From 56787322881ff925be24ef51cbcc008e23488f8a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Aug 2023 07:28:19 +0200 Subject: [PATCH 07/32] Bump actions/checkout from 3.5.3 to 3.6.0 (#109) --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index f07b2d4..ad24da7 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - name: Set up Ruby uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8bf7e66..e4d44c4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - name: Set up Docker Buildx uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 From 373fda9bbf5d29f8346e154002997cb0aa6ce692 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 29 Aug 2023 07:20:58 +0200 Subject: [PATCH 08/32] Bump docker/setup-buildx-action from 2.9.1 to 2.10.0 (#110) --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e4d44c4..ec3dcd0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 + uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 with: install: true From 8d0fe060cc46e8f54e207cc359be0ecf41717e7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 13:49:13 -0400 Subject: [PATCH 09/32] Bump actions/checkout from 3.6.0 to 4.0.0 (#111) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/f43a0e5ff2bd294095638e18286ca9a3d1956744...3df4ab11eba7bda6032a0b82a6bb43b11571feac) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index ad24da7..8043d6d 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Set up Ruby uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ec3dcd0..81a9f2a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Set up Docker Buildx uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 From a75fd9e16c651a19249dda52858b929493afd773 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 11:50:19 +0200 Subject: [PATCH 10/32] Bump docker/build-push-action from 4.1.1 to 5.0.0 (#114) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4.1.1 to 5.0.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/2eb1c1961a95fc15694676618e422e8ba1d63825...0565240e2d4ab88bba5387d719585280857ece09) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci] --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 81a9f2a..9d0109e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: install: true - name: Build Docker image and store in cache - uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 + uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 with: context: . push: false From 2badcdbdf8a21bce2a530af24c91346d5aa46ee7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 11:50:28 +0200 Subject: [PATCH 11/32] Bump docker/setup-buildx-action from 2.10.0 to 3.0.0 (#113) Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.10.0 to 3.0.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/885d1462b80bc1c1c7f0b00334ad271f09369c55...f95db51fddba0c2d1ec667646a06c2ce06100226) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci] --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9d0109e..142adbb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Set up Docker Buildx - uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 + uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 with: install: true From 376c330dd498990c172ad57d21fd827c9ab9ebfc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 07:56:59 +0200 Subject: [PATCH 12/32] Bump ruby/setup-ruby from 1.152.0 to 1.153.0 (#115) --- .github/workflows/rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 8043d6d..0e7fef7 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Set up Ruby - uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 + uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 with: ruby-version: .ruby-version bundler-cache: true From 8918d7c4932892c2eed194689769d51d92744d08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:29:02 +0200 Subject: [PATCH 13/32] Bump ruby/setup-ruby from 1.153.0 to 1.154.0 (#116) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.153.0 to 1.154.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/5311f05890856149502132d25c4a24985a00d426...52b8784594ec115fd17094752708121dc5dabb47) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 0e7fef7..4f02781 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Set up Ruby - uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 + uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 with: ruby-version: .ruby-version bundler-cache: true From d5e53beed7a5d9642e05c460c6882b57e553e779 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:56:36 +0200 Subject: [PATCH 14/32] Bump ruby/setup-ruby from 1.154.0 to 1.155.0 (#118) --- .github/workflows/rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 4f02781..4080b14 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac - name: Set up Ruby - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 + uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 with: ruby-version: .ruby-version bundler-cache: true From 54d5fe793b67d3c5647a7ed24784271ffa1144e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:59:39 +0200 Subject: [PATCH 15/32] Bump actions/checkout from 4.0.0 to 4.1.0 (#117) --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 4080b14..fd27096 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Set up Ruby uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 142adbb..51d1255 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 From 5e41c909ca3911f79dece374e0a90a4d3a3770bf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:00:00 +0200 Subject: [PATCH 16/32] Bump ruby/setup-ruby from 1.155.0 to 1.156.0 (#119) --- .github/workflows/rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index fd27096..5e574a6 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - name: Set up Ruby - uses: ruby/setup-ruby@d37167af451eb51448db3354e1057b75c4b268f7 + uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 with: ruby-version: .ruby-version bundler-cache: true From fb45ff334bc5722d43f6ab2dcce0059a086bd617 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Oct 2023 09:48:03 +0200 Subject: [PATCH 17/32] Bump actions/checkout from 4.1.0 to 4.1.1 (#120) Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/8ade135a41bc03ea155e62e844d188df1ea18608...b4ffde65f46336ab88eb53be808477a3936bae11) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 5e574a6..c839492 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 51d1255..42e0746 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 From d23c38dbd85425d2b1732b9821739bf9df79f360 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 22:01:03 +0200 Subject: [PATCH 18/32] Bump ruby/setup-ruby from 1.156.0 to 1.157.0 (#121) --- .github/workflows/rubocop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index c839492..82c55d7 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@5cfe23c062c0aac352e765b1b7cc12ea5255ccc4 + uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 with: ruby-version: .ruby-version bundler-cache: true From bee699faba474743f231413491ce2f2c8160aa94 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 26 Oct 2023 10:06:12 +0200 Subject: [PATCH 19/32] Fix Ruby tests (#124) --- test/test_runner_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_runner_test.rb b/test/test_runner_test.rb index d3356fd..6274d26 100644 --- a/test/test_runner_test.rb +++ b/test/test_runner_test.rb @@ -127,7 +127,7 @@ def test_syntax_errors_in_tests actual = JSON.parse(File.read(output_dir / "results.json")) assert_equal "error", actual["status"] expected = <<~SYNTAX_ERRORS - Line 3: syntax error, unexpected ',', expecting end-of-input + Line 3: syntax error, unexpected ',' ,'This is meant to be a syntax... ^ SYNTAX_ERRORS From 6b405a74ed2da1f3ba2d80afaa3e0a3048f910ed Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 26 Oct 2023 10:09:01 +0200 Subject: [PATCH 20/32] Run Ruby tests in CI (#123) --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 42e0746..d21b223 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,8 +9,28 @@ on: - main jobs: - test: - name: Tests + unit_tests: + name: Unit tests + runs-on: ubuntu-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + + - name: Setup Ruby + uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 + with: + ruby-version: .ruby-version + bundler-cache: true + + - name: Install gems + run: bundle install + + - name: Run tests + run: bundle exec rake test + + smoke_tests: + name: Smoke tests runs-on: ubuntu-22.04 steps: From 3f2aa85bf6b7baf8210b190dc4e16991b6621a08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:31:09 +0200 Subject: [PATCH 21/32] Bump ruby/setup-ruby from 1.157.0 to 1.158.0 (#122) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.157.0 to 1.158.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/a05e47355e80e57b9a67566a813648fa67d92011...cd48c8e22733480b66887b42bfeb6c0b88ea1a56) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 82c55d7..6fb2a64 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011 + uses: ruby/setup-ruby@cd48c8e22733480b66887b42bfeb6c0b88ea1a56 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d21b223..a33e124 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 + uses: ruby/setup-ruby@cd48c8e22733480b66887b42bfeb6c0b88ea1a56 with: ruby-version: .ruby-version bundler-cache: true From 2f523fdfc95a31d024590f06bf63b84cd8709b77 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 08:37:58 +0200 Subject: [PATCH 22/32] Bump ruby/setup-ruby from 1.158.0 to 1.159.0 (#125) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.158.0 to 1.159.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/cd48c8e22733480b66887b42bfeb6c0b88ea1a56...54a18e26dbbb1eabc604f317ade9a5788dddef81) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci[ --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 6fb2a64..d34f477 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@cd48c8e22733480b66887b42bfeb6c0b88ea1a56 + uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a33e124..0fad863 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@cd48c8e22733480b66887b42bfeb6c0b88ea1a56 + uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 with: ruby-version: .ruby-version bundler-cache: true From 4c0dc2ceaa56a61dc71868f4a5a44c1e8f50942c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 07:39:47 +0100 Subject: [PATCH 23/32] Bump ruby/setup-ruby from 1.159.0 to 1.160.0 (#126) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.159.0 to 1.160.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/54a18e26dbbb1eabc604f317ade9a5788dddef81...036ef458ddccddb148a2b9fb67e95a22fdbf728b) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index d34f477..c7162aa 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 + uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0fad863..9437e1f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@54a18e26dbbb1eabc604f317ade9a5788dddef81 + uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b with: ruby-version: .ruby-version bundler-cache: true From 38c5267935f32f7b4171214ddf9183f79692fc41 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:25:02 +0100 Subject: [PATCH 24/32] Bump ruby/setup-ruby from 1.160.0 to 1.161.0 (#127) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.160.0 to 1.161.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/036ef458ddccddb148a2b9fb67e95a22fdbf728b...8575951200e472d5f2d95c625da0c7bec8217c42) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index c7162aa..e6a106b 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9437e1f..b5b355b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@036ef458ddccddb148a2b9fb67e95a22fdbf728b + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 with: ruby-version: .ruby-version bundler-cache: true From 7df8ac3fb9f29248e02fa716b30371a74e58e75f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 08:47:42 +0100 Subject: [PATCH 25/32] Bump docker/build-push-action from 5.0.0 to 5.1.0 (#128) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.0.0 to 5.1.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/0565240e2d4ab88bba5387d719585280857ece09...4a13e500e55cf31b7a5d59a38ab2040ab0f42f56) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci] --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b5b355b..e746824 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,7 +43,7 @@ jobs: install: true - name: Build Docker image and store in cache - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 + uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 with: context: . push: false From 2ecd60778d1ab6858e9a8041af277dc8c19a7d7c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 08:03:33 +0100 Subject: [PATCH 26/32] Bump ruby/setup-ruby from 1.161.0 to 1.162.0 (#129) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.161.0 to 1.162.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/8575951200e472d5f2d95c625da0c7bec8217c42...af848b40be8bb463a751551a1180d74782ba8a72) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci] --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index e6a106b..4f4027f 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 + uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e746824..8e8edca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 + uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 with: ruby-version: .ruby-version bundler-cache: true From 94d59add67387b5bf95207953baadf5d765fb917 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 08:59:19 +0100 Subject: [PATCH 27/32] Bump ruby/setup-ruby from 1.162.0 to 1.165.1 (#132) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.162.0 to 1.165.1. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/af848b40be8bb463a751551a1180d74782ba8a72...360dc864d5da99d54fcb8e9148c14a84b90d3e88) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci] --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 4f4027f..c7f8cb6 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 + uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e8edca..bb0f01d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 + uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 with: ruby-version: .ruby-version bundler-cache: true From e7a3f20e8b2b89ce4d30824192f11800f48935e0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 07:31:52 +0100 Subject: [PATCH 28/32] Bump ruby/setup-ruby from 1.165.1 to 1.167.0 (#133) --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index c7f8cb6..4935ff0 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 + uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bb0f01d..7f0db6d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 + uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 with: ruby-version: .ruby-version bundler-cache: true From 7a1325acf44c347071d4a0b906e3617710c46a89 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 06:48:35 +0100 Subject: [PATCH 29/32] Bump ruby/setup-ruby from 1.167.0 to 1.168.0 (#134) --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 4935ff0..cc660d9 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 + uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7f0db6d..df7749b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@b203567269b5bbc256dbc1c84f7495913f977353 + uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a with: ruby-version: .ruby-version bundler-cache: true From ebf093d4fd184e152f596e3a4807d09796b999a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 23 Jan 2024 08:10:26 +0100 Subject: [PATCH 30/32] Bump ruby/setup-ruby from 1.168.0 to 1.169.0 (#135) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.168.0 to 1.169.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/432702e864cadc1b56247e31aa341be5be3e129a...5daca165445f0ae10478593083f72ca2625e241d) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index cc660d9..412de7e 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a + uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df7749b..f417e45 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@432702e864cadc1b56247e31aa341be5be3e129a + uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d with: ruby-version: .ruby-version bundler-cache: true From 8b5dccca01d8c676eba24ee9a2ca0782ebf87b37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 08:32:19 +0100 Subject: [PATCH 31/32] Bump ruby/setup-ruby from 1.169.0 to 1.171.0 (#137) Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.169.0 to 1.171.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/5daca165445f0ae10478593083f72ca2625e241d...22fdc77bf4148f810455b226c90fb81b5cbc00a7) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci] --- .github/workflows/rubocop.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 412de7e..0401c2d 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Set up Ruby - uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d + uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 with: ruby-version: .ruby-version bundler-cache: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f417e45..dca4c26 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: Setup Ruby - uses: ruby/setup-ruby@5daca165445f0ae10478593083f72ca2625e241d + uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 with: ruby-version: .ruby-version bundler-cache: true From e00080cc06e81ca24f6732a8405030b75f0eca04 Mon Sep 17 00:00:00 2001 From: Exercism Bot Date: Tue, 13 Feb 2024 07:50:42 +0000 Subject: [PATCH 32/32] =?UTF-8?q?=F0=9F=A4=96=20Sync=20org-wide=20files=20?= =?UTF-8?q?to=20upstream=20repo=20(#138)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit More info: https://github.com/exercism/org-wide-files/commit/f72e90478cac439f8ded661b9b650dd923898985 --- CODE_OF_CONDUCT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index df8e367..3f7813d 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -90,4 +90,4 @@ This policy was initially adopted from the Front-end London Slack community and A version history can be seen on [GitHub](https://github.com/exercism/website-copy/edit/main/pages/code_of_conduct.md). _This policy is a "living" document, and subject to refinement and expansion in the future. -This policy applies to the Exercism website, the Exercism GitHub organization, any other Exercism-related communication channels (e.g. Slack, Twitter, email) and any other Exercism entity or event._ +This policy applies to the Exercism website, the Exercism GitHub organization, any other Exercism-related communication channels (e.g. Discord, Forum, Twitter, email) and any other Exercism entity or event._