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

feat(actions): add github workflows for test #58

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

developer-guy
Copy link

@developer-guy developer-guy commented Nov 9, 2020

Signed-off-by: Dentrax [email protected]
Signed-off-by: Batuhan Apaydın [email protected]

Screen Shot 2020-11-10 at 18 17 53

@derek derek bot added the new-contributor label Nov 9, 2020
uses: golangci/golangci-lint-action@v2
with:
version: v1.29
- name: test faas-swarm
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to split the setup, test, and tear down for swarm and faas-netes? If there are problems in the future it will be a little more clear why it failed.

As an example, the faas-netes worflow has individual steps https://github.com/openfaas/faas-netes/blob/master/.github/workflows/build.yaml

Copy link
Author

Choose a reason for hiding this comment

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

thank you @LucasRoesler , done.

@developer-guy developer-guy force-pushed the github-actions branch 2 times, most recently from e315771 to c1648c2 Compare November 9, 2020 11:21
OPENFAAS_URL: http://${{ env.IP }}:8080/
- name: clean swarm cluster
run: ./contrib/clean_swarm_cluster.sh
- name: test faas-netes
Copy link
Member

Choose a reason for hiding this comment

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

followup to my previous comment, can we split the k8s setup too ?

Copy link
Author

Choose a reason for hiding this comment

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

of course 👍

Copy link
Author

Choose a reason for hiding this comment

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

done. I updated the screenshot in the comment too.

@developer-guy developer-guy force-pushed the github-actions branch 3 times, most recently from a1c7a6f to 41d9b83 Compare November 9, 2020 19:14
IP: 127.0.0.1

jobs:
test:
Copy link
Member

Choose a reason for hiding this comment

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

one last request, can we split it into two jobs test-swarm and test-k8s so that they can be run in parallel? it otherwise looks great

sorry, i didn't ask about it before i had to read the docs but had an issue at work that prevented me from commenting sooner

Copy link
Author

Choose a reason for hiding this comment

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

thank you lucas done.

@developer-guy developer-guy force-pushed the github-actions branch 6 times, most recently from e11f152 to 0b025a6 Compare November 10, 2020 12:56
Copy link
Member

@LucasRoesler LucasRoesler left a comment

Choose a reason for hiding this comment

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

@alexellis it looks good, do you want to double check before merging

Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

I think we need to build on all branches, no?


on:
push:
branches: [ master ]
Copy link
Member

Choose a reason for hiding this comment

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

Why only master?

Copy link
Author

Choose a reason for hiding this comment

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

it was already like this, I can change it if you want. 👍

Copy link
Author

Choose a reason for hiding this comment

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

done.

lint:
strategy:
matrix:
go-version: [ 1.14.x ]
Copy link
Member

Choose a reason for hiding this comment

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

We use 1.13 everywhere. Any reason for the change?

Copy link
Author

Choose a reason for hiding this comment

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

In the previous Travis CI setup, go 1.14.x was used, so I didn't change it, I will update with go 1.13, ok.

Copy link
Author

Choose a reason for hiding this comment

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

done.


set -euo pipefail

KUBE_VERSION=v1.17.0
Copy link
Member

Choose a reason for hiding this comment

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

Update to 1.18.8 please

Copy link
Author

Choose a reason for hiding this comment

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

Ok 👍

Copy link
Author

Choose a reason for hiding this comment

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

done.

@developer-guy developer-guy force-pushed the github-actions branch 2 times, most recently from d6b4661 to 7b4771b Compare November 10, 2020 13:42
@developer-guy
Copy link
Author

I think we need to build on all branches, no?

Done .

push:
branches: [ "*" ]
pull_request:
branches: [ master ]
Copy link
Member

Choose a reason for hiding this comment

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

We used * for all branches of pushes and PRs in every other repo, so why are we now putting master on each of these PRs? @LucasRoesler do you know why?

Copy link
Author

Choose a reason for hiding this comment

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

done, thank you 🙏

chmod +x kubectl && \
sudo mv kubectl /usr/local/bin/

echo ">>> Installing arkade"
Copy link
Member

Choose a reason for hiding this comment

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

If we are installing arkade, why not download kubectl with arkade?

arkade get kubectl --version $KUBE_VERSION
mv $HOME/.arkade/bin/kubectl /usr/local/bin/

Copy link
Author

Choose a reason for hiding this comment

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

done, thank you 🙏

Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

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

Review submitted.

Signed-off-by: Dentrax <[email protected]>
Signed-off-by: Batuhan Apaydın <[email protected]>
@alexellis alexellis merged commit 3c685c0 into openfaas:master Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants