-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
.github/workflows/test.yaml
Outdated
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.29 | ||
- name: test faas-swarm |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you @LucasRoesler , done.
e315771
to
c1648c2
Compare
.github/workflows/test.yaml
Outdated
OPENFAAS_URL: http://${{ env.IP }}:8080/ | ||
- name: clean swarm cluster | ||
run: ./contrib/clean_swarm_cluster.sh | ||
- name: test faas-netes |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of course 👍
There was a problem hiding this comment.
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.
a1c7a6f
to
41d9b83
Compare
.github/workflows/test.yaml
Outdated
IP: 127.0.0.1 | ||
|
||
jobs: | ||
test: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you lucas done.
e11f152
to
0b025a6
Compare
There was a problem hiding this 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
There was a problem hiding this 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?
.github/workflows/test.yaml
Outdated
|
||
on: | ||
push: | ||
branches: [ master ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only master?
There was a problem hiding this comment.
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. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
.github/workflows/test.yaml
Outdated
lint: | ||
strategy: | ||
matrix: | ||
go-version: [ 1.14.x ] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
contrib/get_tools.sh
Outdated
|
||
set -euo pipefail | ||
|
||
KUBE_VERSION=v1.17.0 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
d6b4661
to
7b4771b
Compare
Done . |
.github/workflows/test.yaml
Outdated
push: | ||
branches: [ "*" ] | ||
pull_request: | ||
branches: [ master ] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, thank you 🙏
There was a problem hiding this 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]>
7b4771b
to
d438fb9
Compare
Signed-off-by: Dentrax [email protected]
Signed-off-by: Batuhan Apaydın [email protected]