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

Remove CircleCI and replace with GitHub Actions #16

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

uberhacker
Copy link

This should be a pattern for all other plugins so we need to get this right.

@@ -17,18 +17,15 @@ touch $BASH_ENV
) >> $BASH_ENV
source $BASH_ENV

set -ex

TERMINUS_PLUGINS_DIR=.. terminus list -n remote
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we just remove Circle now that we have GitHub actions?

Copy link
Author

Choose a reason for hiding this comment

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

This is still being used by GitHub Actions. You just commented where it's being used. :)

Copy link
Member

Choose a reason for hiding this comment

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

Misread as .circleci/... 😊

name: full-workspace
path: /terminus-plugin-test/plugin
- name: Setup environment
run: chmod +x ./.ci/set-up-globals.sh && ./.ci/set-up-globals.sh
Copy link
Member

Choose a reason for hiding this comment

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

Did you just copy this from Build Tools? I don't see the set-up-globals script.

Copy link
Author

Choose a reason for hiding this comment

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

The directory was renamed from .circleci to .ci. To answer your question, I copied from terminus-rsync-plugin.

- name: Install plugin
run: terminus self:plugin:install .
- name: Install SSH key
uses: shimataro/[email protected]
Copy link
Member

Choose a reason for hiding this comment

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

This is failing right now, presumably due to the lack of a secret. This plugin does not require a fixture site, so we have the deep philosophical question: should we set up testing fixtures for plugins that don't need them, just so that folks who copy the code have example test fixtures? There's some merit to that, but I'd say maybe we should just keep it simple and remove TERMINUS_TOKEN et. al. from these tests, and put them back in where needed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd comment stuff out in the ci.yml file. This way, it's still there for people to copy but it's not affecting this project. Maybe comment out the lines and add a comment that to enable people should add secret and uncomment?

Copy link
Author

Choose a reason for hiding this comment

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

Will commenting make the tests pass though? Can't we just make universal test secrets that are limited in scope to only testing repos?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Commenting those sections in this specific plugin will make it pass because this plugin tests don't need those secrets

Copy link
Member

Choose a reason for hiding this comment

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

The ssh-key-action is failing in GitHub actions.

Copy link
Member

Choose a reason for hiding this comment

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

We could just set the secrets everywhere if we want the example here for reference.

Copy link
Author

Choose a reason for hiding this comment

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

How do we plan on solving the ssh/secrets bottleneck?

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.

3 participants