Skip to content

Commit 833c899

Browse files
authored
ci: add clean disk to each workflow (#83)
1 parent 2577fd8 commit 833c899

File tree

10 files changed

+78
-37
lines changed

10 files changed

+78
-37
lines changed

.github/workflows/project.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ jobs:
88
matrix:
99
go-version: [1.13, 1.14]
1010
steps:
11+
- name: clean disk
12+
run: |
13+
sudo swapoff -a
14+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
15+
sudo apt clean
16+
docker rmi $(docker images -q) -f
17+
df -h
18+
1119
- name: Set up Go
1220
uses: actions/setup-go@v1
1321
with:

.github/workflows/pulsar.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,20 @@ jobs:
2626
lint-test:
2727
runs-on: ubuntu-latest
2828
steps:
29+
- name: clean disk
30+
run: |
31+
sudo swapoff -a
32+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
33+
sudo apt clean
34+
docker rmi $(docker images -q) -f
35+
df -h
36+
2937
- name: Checkout
3038
uses: actions/checkout@v2
3139
with:
3240
fetch-depth: 0
3341
ref: ${{ github.event.pull_request.head.sha }}
3442

35-
- name: Check if this pull request only changes documentation
36-
id: docs
37-
uses: apache/pulsar-test-infra/diff-only@master
38-
with:
39-
args: site2 .asf.yaml ct.yaml
40-
4143
- name: Test k8s cluster env
4244
run: |
4345
.ci/deploy_pulsar_cluster.sh

.github/workflows/release-node.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17+
- name: clean disk
18+
run: |
19+
sudo swapoff -a
20+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
21+
sudo apt clean
22+
docker rmi $(docker images -q) -f
23+
df -h
24+
1725
- name: release note
1826
uses: toolmantim/[email protected]
1927
env:

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ jobs:
99
name: Upload Release files
1010
runs-on: ubuntu-latest
1111
steps:
12+
- name: clean disk
13+
run: |
14+
sudo swapoff -a
15+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
16+
sudo apt clean
17+
docker rmi $(docker images -q) -f
18+
df -h
19+
1220
- uses: actions/checkout@v1
1321
- name: Set up GO 1.13
1422
uses: actions/setup-go@v1

.github/workflows/test-e2e-crypto.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ jobs:
77
lint-test:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: clean disk
11+
run: |
12+
sudo swapoff -a
13+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
14+
sudo apt clean
15+
docker rmi $(docker images -q) -f
16+
df -h
17+
1018
- name: Checkout
1119
uses: actions/checkout@v2
1220
with:
1321
fetch-depth: 0
1422
ref: ${{ github.event.pull_request.head.sha }}
1523

16-
- name: Check if this pull request only changes documentation
17-
id: docs
18-
uses: apache/pulsar-test-infra/diff-only@master
19-
with:
20-
args: site2 .asf.yaml ct.yaml
21-
2224
- name: Deploy k8s cluster env
2325
run: |
2426
.ci/deploy_pulsar_cluster.sh

.github/workflows/test-go-function.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ jobs:
77
lint-test:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: clean disk
11+
run: |
12+
sudo swapoff -a
13+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
14+
sudo apt clean
15+
docker rmi $(docker images -q) -f
16+
df -h
17+
1018
- name: Checkout
1119
uses: actions/checkout@v2
1220
with:
1321
fetch-depth: 0
1422
ref: ${{ github.event.pull_request.head.sha }}
1523

16-
- name: Check if this pull request only changes documentation
17-
id: docs
18-
uses: apache/pulsar-test-infra/diff-only@master
19-
with:
20-
args: site2 .asf.yaml ct.yaml
21-
2224
- name: Deploy k8s cluster env
2325
run: |
2426
.ci/deploy_pulsar_cluster.sh

.github/workflows/test-java-function.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ jobs:
77
lint-test:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: clean disk
11+
run: |
12+
sudo swapoff -a
13+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
14+
sudo apt clean
15+
docker rmi $(docker images -q) -f
16+
df -h
17+
1018
- name: Checkout
1119
uses: actions/checkout@v2
1220
with:
1321
fetch-depth: 0
1422
ref: ${{ github.event.pull_request.head.sha }}
1523

16-
- name: Check if this pull request only changes documentation
17-
id: docs
18-
uses: apache/pulsar-test-infra/diff-only@master
19-
with:
20-
args: site2 .asf.yaml ct.yaml
21-
2224
- name: Deploy k8s cluster env
2325
run: |
2426
.ci/deploy_pulsar_cluster.sh

.github/workflows/test-sink.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ jobs:
77
lint-test:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: clean disk
11+
run: |
12+
sudo swapoff -a
13+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
14+
sudo apt clean
15+
docker rmi $(docker images -q) -f
16+
df -h
17+
1018
- name: Checkout
1119
uses: actions/checkout@v2
1220
with:
1321
fetch-depth: 0
1422
ref: ${{ github.event.pull_request.head.sha }}
1523

16-
- name: Check if this pull request only changes documentation
17-
id: docs
18-
uses: apache/pulsar-test-infra/diff-only@master
19-
with:
20-
args: site2 .asf.yaml ct.yaml
21-
2224
- name: Deploy k8s cluster env
2325
run: |
2426
.ci/deploy_pulsar_cluster.sh

.github/workflows/test-source.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ jobs:
77
lint-test:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: clean disk
11+
run: |
12+
sudo swapoff -a
13+
sudo rm -rf /swapfile /usr/share/dotnet /usr/local/lib/android /opt/ghc
14+
sudo apt clean
15+
docker rmi $(docker images -q) -f
16+
df -h
17+
1018
- name: Checkout
1119
uses: actions/checkout@v2
1220
with:
1321
fetch-depth: 0
1422
ref: ${{ github.event.pull_request.head.sha }}
1523

16-
- name: Check if this pull request only changes documentation
17-
id: docs
18-
uses: apache/pulsar-test-infra/diff-only@master
19-
with:
20-
args: site2 .asf.yaml ct.yaml
21-
2224
- name: Deploy k8s cluster env
2325
run: |
2426
.ci/deploy_pulsar_cluster.sh

java-proxy/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ crd yaml [file](https://github.com/streamnative/function-mesh/tree/master/config
5656
Note: add the field `preserveUnknownFields: false` to spec for avoid this [issue]()https://github.com/kubernetes-client/java/issues/1254
5757

5858
```shell script
59-
LOCAL_MANIFEST_FILE=/Users/tuteng/streamnative/temp-data/cloud.streamnative.io_functions.yaml
59+
tmpDir=/tmp/functions-mesh/crd
60+
mkdir -p $tmpDir
61+
cp ../config/crd/bases $tmpDir
62+
63+
LOCAL_MANIFEST_FILE=${tmpDir}/cloud.streamnative.io_sources.yaml
64+
6065
docker run \
6166
--rm \
6267
-v /var/run/docker.sock:/var/run/docker.sock \

0 commit comments

Comments
 (0)