Skip to content

Commit cab3d52

Browse files
authored
Update test.yml
1 parent 0305050 commit cab3d52

File tree

1 file changed

+1
-71
lines changed

1 file changed

+1
-71
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1 @@
1-
name: Ack-Distro-Test
2-
3-
on:
4-
issue_comment:
5-
types:
6-
- created
7-
jobs:
8-
build:
9-
name: test
10-
runs-on: ubuntu-latest
11-
if: startswith(github.event.comment.body, '/test')
12-
env:
13-
GO111MODULE: on
14-
steps:
15-
- name: Github API Request
16-
id: request
17-
uses: octokit/[email protected]
18-
with:
19-
route: ${{ github.event.issue.pull_request.url }}
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
- name: Check out code into the Go module directory
23-
uses: actions/checkout@v2
24-
with:
25-
token: ${{ secrets.GITHUB_TOKEN }}
26-
repository: ${{fromJson(steps.request.outputs.data).head.repo.full_name}}
27-
ref: ${{fromJson(steps.request.outputs.data).head.ref}}
28-
path: src/github.com/alibaba/sealer
29-
30-
- name: Set up Go 1.16
31-
uses: actions/setup-go@v1
32-
with:
33-
go-version: 1.16
34-
id: go
35-
36-
- name: Install sealer and ginkgo
37-
shell: bash
38-
run: |
39-
wget https://ack-a-aecp.oss-cn-hangzhou.aliyuncs.com/ack-distro/bin/amd64/sealer-latest-linux-amd64.tar.gz -O sealer-latest.tar.gz
40-
sudo tar -xvf sealer-latest.tar.gz -C /usr/bin/
41-
go get github.com/onsi/ginkgo/[email protected]
42-
go get github.com/onsi/gomega/[email protected]
43-
GOPATH=`go env GOPATH`
44-
echo "$GOPATH/bin" >> $GITHUB_PATH
45-
#working-directory: src/github.com/alibaba/sealer
46-
47-
- name: Run sealer run test
48-
shell: bash
49-
working-directory: src/github.com/alibaba/sealer
50-
env:
51-
IMAGE_NAME: ${{ secrets.IMAGE_NAME}}
52-
ACCESSKEYID: ${{ secrets.ACCESSKEYID }}
53-
ACCESSKEYSECRET: ${{ secrets.ACCESSKEYSECRET }}
54-
RegionID: ${{ secrets.RegionID }}
55-
if: startswith(github.event.comment.body, '/test')
56-
run: |
57-
set -x
58-
issuenumber=${{ github.event.issue.number }}
59-
if [ $issuenumber == 80 ]; then
60-
commentbody="${{github.event.comment.body}}"
61-
imageName=`echo "$commentbody"|cut -d" " -f2`
62-
export imageName=$imageName
63-
network=`echo "$commentbody"|cut -d" " -f3`
64-
export network=$network
65-
e2e=`echo "$commentbody"|cut -d" " -f4`
66-
export e2e=$e2e
67-
hold=`echo "$commentbody"|cut -d" " -f5`
68-
export hold=$hold
69-
ginkgo -v --focus="test" test
70-
fi
71-
1+
The file is invalid due to expiration.

0 commit comments

Comments
 (0)