Skip to content

Commit 940f9c7

Browse files
committed
Split build & test workflows (tests hang in Github CI due to ... something)
1 parent ad85e30 commit 940f9c7

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ jobs:
5151
s3cmd ${{secrets.S3CMD}} put geesefs-win-x64.exe s3://${{secrets.S3BUCKET}}/${GITHUB_REF/refs\/tags\/v/}/geesefs-win-x64.exe
5252
s3cmd ${{secrets.S3CMD}} put geesefs-tests-linux-amd64 s3://${{secrets.S3BUCKET}}/${GITHUB_REF/refs\/tags\/v/}/geesefs-tests-linux-amd64
5353
54-
- name: Test
55-
run: SAME_PROCESS_MOUNT=1 make run-test
56-
5754
- uses: "marvinpinto/action-automatic-releases@latest"
5855
with:
5956
repo_token: "${{ secrets.GITHUB_TOKEN }}"
@@ -64,9 +61,3 @@ jobs:
6461
geesefs-mac-amd64
6562
geesefs-mac-arm64
6663
geesefs-win-x64.exe
67-
68-
- name: Run xfstests
69-
# Often crashes in CI due to memory limits
70-
continue-on-error: true
71-
run: make run-xfstests
72-
timeout-minutes: 10

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.19
19+
20+
- name: Build linux amd64
21+
run: env CGO_ENABLED=0 go build -o geesefs-linux-amd64 -v && ln -s geesefs-linux-amd64 geesefs
22+
23+
- name: Build tests
24+
run: go test -c github.com/yandex-cloud/geesefs/internal -o geesefs-tests-linux-amd64
25+
26+
- name: Run tests
27+
run: SAME_PROCESS_MOUNT=1 make run-test
28+
29+
- name: Run xfstests
30+
# Often crashes in CI due to memory limits
31+
continue-on-error: true
32+
run: make run-xfstests
33+
timeout-minutes: 10

0 commit comments

Comments
 (0)