Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

Setup github actions #2

Closed
tgorochowik opened this issue Mar 12, 2021 · 4 comments · Fixed by #9
Closed

Setup github actions #2

tgorochowik opened this issue Mar 12, 2021 · 4 comments · Fixed by #9
Assignees

Comments

@tgorochowik
Copy link
Member

See: https://docs.github.com/en/actions

Make sure to trigger the CI on push (to master) and on PRs.

As there is no code yet it can run a simple echo "hello world" and exit. The goal here is to prepare the infrastructure to run actual tests at a later stage.

@tgorochowik
Copy link
Member Author

@MaciejFranikowski

From now on, please make sure to create PRs before pushing new code to the master branch.

You can push to a different branch here and create a PR from it, or if you prefer you can create a fork and create a PR from your forks.

BTW. the ci configs you pushed to the repository seem to be some samples copied from the internet. This is ok as long as the licence is compatible with the licence used in this project. Is it? In addition you should have mentioned the source of the configuration in your commit.

Things like this (and other things you missed) can be discussed in PRs, that's why it's crucial you use them.

@blazejulanowicz
Copy link
Contributor

@tgorochowik

You can be sure that we'll now properly use pushes/PRs.

Regarding CI - this and #3 - we've added two workflows, one as a hello-world-workflow, that starts only on PR/push to master and one linting workflow that starts on push to every branch (source - MIT license).

Is this correct approach? I mean, should we restrict linting only to master and development branch or leave it as it its?

@tgorochowik
Copy link
Member Author

@blazejulanowicz you can indeed mix MIT license with Apache (which we use here), but you have to keep the original license and copyright notice for the imported files.

This is important, please don't ignore licenses in the future. This is especially important when you start working on the code.

I have removed your commits from master and pushed them to a branch here: https://github.com/antmicro-labs/raw-image-data-previewer/tree/ci-copy

It is okay to create a PR based on that (retaining the license information).

But this is really simple stuff, it would be much better if you just wrote this yourself based on the documentation and just push that with the proper license from the start.

@blazejulanowicz
Copy link
Contributor

@tgorochowik

Thanks for help. From now on we will be more strict when it comes to licenses.

I am going to remove both workflows and create them again - without using any templates.

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

Successfully merging a pull request may close this issue.

3 participants