Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example rspec tests #64

Draft
wants to merge 4 commits into
base: trunk
Choose a base branch
from
Draft

Example rspec tests #64

wants to merge 4 commits into from

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented Jun 8, 2023

No description provided.

Base automatically changed from mokagio/omit-details-annotation-when-empty to trunk June 8, 2023 10:54
@mokagio mokagio force-pushed the mokagio/add-some-tests branch from 96ba48c to 6e8e9ee Compare June 8, 2023 11:04

source "https://rubygems.org"

gem "rexml"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd probably want to use nokogiri if we pushed this to "production" as it's the more commonly used, but this does the job alright in this context.

@@ -1,14 +1,17 @@
.DEFAULT_GOAL := default

lint: buildkite-plugin-lint rubocop shellcheck
test: buildkite-plugin-test buildkite-plugin-test-commands-are-executable
test: unit-tests buildkite-plugin-test buildkite-plugin-test-commands-are-executable

buildkite-plugin-test:
docker run -t --rm -v "${PWD}":/plugin buildkite/plugin-tester

buildkite-plugin-test-commands-are-executable:
docker run -t --rm -v "${PWD}":/plugin -w /plugin ruby:2.7.4 /bin/bash -c "gem install --silent rspec && rspec tests/test-that-all-files-are-executable.rb"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change this Ruby value to the one from the new .ruby-version to keep this PR focused.

@@ -0,0 +1 @@
3.2.2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given this is an experiment, might as well try with the latest Ruby :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant