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(ci): enable node test #2274

Merged
merged 1 commit into from
May 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,39 +170,39 @@ jobs:
-d @-
ginkgo -nodes=1 -v test/e2e_installer/cluster

# node:
# name: node test
# runs-on: self-hosted
# needs: image
# if: success()
# steps:
# - name: Set VERSION
# run: |
# if ${{github.event_name == 'push'}}; then
# echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
# elif ${{ github.event.inputs.commit != '' }}; then
# echo "VERSION=${{ github.event.inputs.commit }}" >> $GITHUB_ENV
# fi
# - uses: actions/checkout@v2
# with:
# ref: ${{ env.VERSION }}
# - name: Test node
# run: |
# (
# cat <<EOF
# {
# "msgtype": "markdown",
# "markdown": {
# "content": "<font color=\"info\">${{ github.repository }}: Start test node.</font>\n
# >version: <font color=\"comment\">$VERSION</font>
# "
# }
# }
# EOF
# ) | curl '${{ secrets.WECHATWORK_WEBHOOK }}' \
# -H 'Content-Type: application/json' \
# -d @-
# ginkgo -nodes=2 -v test/e2e_installer/node
node:
name: node test
runs-on: self-hosted
needs: image
if: success()
steps:
- name: Set VERSION
run: |
if ${{github.event_name == 'push'}}; then
echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
elif ${{ github.event.inputs.commit != '' }}; then
echo "VERSION=${{ github.event.inputs.commit }}" >> $GITHUB_ENV
fi
- uses: actions/checkout@v2
with:
ref: ${{ env.VERSION }}
- name: Test node
run: |
(
cat <<EOF
{
"msgtype": "markdown",
"markdown": {
"content": "<font color=\"info\">${{ github.repository }}: Start test node.</font>\n
>version: <font color=\"comment\">$VERSION</font>
"
}
}
EOF
) | curl '${{ secrets.WECHATWORK_WEBHOOK }}' \
-H 'Content-Type: application/json' \
-d @-
ginkgo -nodes=2 -v test/e2e_installer/node

report-failure:
zhangzhangzf marked this conversation as resolved.
Show resolved Hide resolved
name: report failure
Expand Down