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

Add pull request build workflow #10

Merged
merged 1 commit into from
Oct 4, 2021
Merged

Conversation

DasSkelett
Copy link
Member

@DasSkelett DasSkelett commented Oct 4, 2021

Motivation

This repo is currently missing any sort of CI / PR tests.
This means that problems with the changes can only be discovered through manual review (by another person) or after merging it and waiting for the deployment workflow to fail or finish.

It would be preferable to have some automated feedback right away, without having to wait for review or merge.

Changes

This reworks the currently defunct build.yaml workflow file to build the Docker image in pull requests, to give us some basic CI / validation and catch basic errors.

Unfortunately wg-access-server doesn't have any sort of unit testing set up, neither for the JS frontend code nor the Go backend code, so we can only check whether everything builds successfully.

The workflow is similar to the deployment workflow (docker.yml), except it only builds one architecture (amd64) to speed it up, and doesn't push the image.
It also uses the gha buildx cache to speed up future builds

Build the Docker image in pull requests to add some basic testing for proposed changes
@DasSkelett DasSkelett merged commit 3a81634 into freifunkMUC:master Oct 4, 2021
@DasSkelett DasSkelett deleted the pr-ci branch October 4, 2021 14:41
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