Skip to content

Commit

Permalink
packet setup without cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Avramenko <[email protected]>
  • Loading branch information
Mixaster995 committed Jan 17, 2022
1 parent e57279a commit 760b40d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
go-version: 1.16
- name: Install cloudtest # 3. Install cloudtest
run: |
go get github.com/networkservicemesh/cloudtest@master
go get github.com/Bolodya1997/cloudtest@debug/no-cluster-cleanup
env:
GO111MODULE: on
GOBIN: /bin
Expand Down Expand Up @@ -128,25 +128,25 @@ jobs:
name: logs-${{ github.run_number }}
path: ${{ github.repository }}/.tests/

packet-cleanup:
name: packet cleanup
runs-on: ubuntu-latest
needs:
- packet
if: ${{ always() }}
steps:
- name: Set up /bin permissions
run: |
sudo chmod -R 777 /bin
- uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Clean up packet
run: |
go get github.com/networkservicemesh/cloudtest/pkg/providers/packet/packet_cleanup@master
packet_cleanup -k y -c y
env:
GO111MODULE: on
GOBIN: /bin
PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
PACKET_PROJECT_ID: 383890d0-f5d1-4de1-881a-4d1ede549d18
# packet-cleanup:
# name: packet cleanup
# runs-on: ubuntu-latest
# needs:
# - packet
# if: ${{ always() }}
# steps:
# - name: Set up /bin permissions
# run: |
# sudo chmod -R 777 /bin
# - uses: actions/setup-go@v1
# with:
# go-version: 1.16
# - name: Clean up packet
# run: |
# go get github.com/networkservicemesh/cloudtest/pkg/providers/packet/packet_cleanup@master
# packet_cleanup -k y -c y
# env:
# GO111MODULE: on
# GOBIN: /bin
# PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
# PACKET_PROJECT_ID: 383890d0-f5d1-4de1-881a-4d1ede549d18
5 changes: 5 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ func TestMultiForwarder(t *testing.T) {
}

func TestCalico(t *testing.T) {
//path := os.Getenv("PATH")
//if len(path) != 0 {
// path += ":/usr/local/bin"
// os.Setenv("PATH", path)
//}
if !isCalico() {
t.Skip("not available without Calico")
}
Expand Down

0 comments on commit 760b40d

Please sign in to comment.