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

Replace Travis CI with GitHub Actions #274

Merged
merged 2 commits into from
Oct 21, 2021
Merged

Conversation

lfdebrux
Copy link
Member

@lfdebrux lfdebrux commented Oct 21, 2021

We want to use GitHub Actions as the tech docs template's continuous integration/continuous deployment service. This commit removes .travis.yml and adds equivalent workflows, test.yaml and publish.yaml.

The script to publish to RubyGems was copied from the cadwallion/publish-rubygems-action [1]. We avoid using the action directly in accordance with the guidelines in the GDS Way [2].

Once this PR is approved, we will need to change the branch protection rule required checks and add the RubyGems secrets to the rubygems environment in GitHub. We will also want to disconnect Travis from this repo.

@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch from 7975b6e to 05f7070 Compare October 21, 2021 12:54
@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch 2 times, most recently from 552c223 to 922744a Compare October 21, 2021 13:04
@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch from 8d9447b to cd2615d Compare October 21, 2021 13:28
@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch from cd2615d to 0fd04fe Compare October 21, 2021 13:33
@lfdebrux lfdebrux temporarily deployed to rubygems October 21, 2021 13:33 Inactive
@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch from 0fd04fe to 565938b Compare October 21, 2021 13:36
@lfdebrux lfdebrux marked this pull request as ready for review October 21, 2021 13:37
Copy link
Contributor

@richardTowers richardTowers left a comment

Choose a reason for hiding this comment

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

A couple of minor comments - happy to approve once you've had a look.

@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch from 565938b to b6b3e19 Compare October 21, 2021 14:57
We want to use GitHub Actions as the tech docs template's continuous
integration/continuous deployment service. This commit removes
`.travis.yml` and adds equivalent workflows, `test.yaml` and
`publish.yaml`.

The script to publish to RubyGems was copied from the
discourse/publish-rubygems-action [[1]], with a modification to use the
github-actions[bot] user for tagging the release following suggestion from
fregante/setup-git-user action [[2]]. We avoid using the action directly
in accordance with the guidelines in the GDS Way [[3]].

[1]: https://github.com/discourse/publish-rubygems-action/blob/b55d7b9/entrypoint.sh
[2]: https://github.com/fregante/setup-git-user/blob/5ede2be/index.js
[3]: https://gds-way.cloudapps.digital/standards/source-code.html#using-github-actions-and-workflows

Use GitHub Actions bot account for creating release tags
We specify Node v14 in our `.nvmrc` file, which comes with npm v6. This
version of npm complains when if finds a package-lock.json file using
lockfileVersion@2, and replaces it with an equivalent lockfile using the
older format. This is confusing for contributors, and breaks `rake
release`, which complains about uncommited changes.

This commit fixes the issue by commiting a version of package-lock.json
using lockfileVersion@2. If and when this repo starts using Node v16 we
can upgrade the lockfile again.
@lfdebrux lfdebrux force-pushed the ldeb-use-github-actions branch from b6b3e19 to bb5dd07 Compare October 21, 2021 14:59
@lfdebrux lfdebrux merged commit 11c7dca into master Oct 21, 2021
@lfdebrux lfdebrux deleted the ldeb-use-github-actions branch October 21, 2021 15:44
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.

2 participants