Skip to content

Switch CI to GitHub actions#64

Merged
nmeyerhans merged 4 commits into
amazonlinux:mainfrom
nmeyerhans:github-actions
Aug 1, 2022
Merged

Switch CI to GitHub actions#64
nmeyerhans merged 4 commits into
amazonlinux:mainfrom
nmeyerhans:github-actions

Conversation

@nmeyerhans
Copy link
Copy Markdown
Contributor

Issue #, if available: #54

Description of changes:

Configure GitHub Actions on the main branch. Package builds are performed in Debian 11 and AL2022 container environments, and shellcheck is run in an Ubuntu worker. This fully replaces our previously configured CircleCI configuration, which no longer works since we don't have CircleCI active in this organization.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nmeyerhans nmeyerhans requested a review from keithaws July 28, 2022 21:32
@@ -0,0 +1,3 @@
FROM public.ecr.aws/debian/debian:11

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends build-essential debhelper git devscripts shellcheck
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The description of this change mentions shellcheck running in a Ubuntu container (shown below in .github/workflows/shellcheck.yml), but the package is also installed in the Debian container. Is this intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The .deb build process runs the test suite, which in this case involves running shellcheck, which is why it's there (and listed as a build-dependency in debian/control). I'd like to run the tests during rpm build as well, but shellcheck isn't in AL2022 yet.

Because of this, we run shellcheck twice, but having it as a discrete step is useful for visibility in the workflow runs.

@nmeyerhans nmeyerhans merged commit ed39ed2 into amazonlinux:main Aug 1, 2022
@nmeyerhans nmeyerhans mentioned this pull request Aug 1, 2022
@nmeyerhans nmeyerhans deleted the github-actions branch October 6, 2022 18:08
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