Skip to content

Commit

Permalink
feat(ci): enable node test (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed May 5, 2023
1 parent 6bd8cd3 commit 9b6302a
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/release.yml
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:
name: report failure
Expand Down

0 comments on commit 9b6302a

Please sign in to comment.