Skip to content

Commit

Permalink
Split build & test workflows (tests hang in Github CI due to ... some…
Browse files Browse the repository at this point in the history
…thing)
  • Loading branch information
vitalif committed Sep 27, 2023
1 parent ad85e30 commit e419f7e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ jobs:
s3cmd ${{secrets.S3CMD}} put geesefs-win-x64.exe s3://${{secrets.S3BUCKET}}/${GITHUB_REF/refs\/tags\/v/}/geesefs-win-x64.exe
s3cmd ${{secrets.S3CMD}} put geesefs-tests-linux-amd64 s3://${{secrets.S3BUCKET}}/${GITHUB_REF/refs\/tags\/v/}/geesefs-tests-linux-amd64
- name: Test
run: SAME_PROCESS_MOUNT=1 make run-test

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand All @@ -64,9 +61,3 @@ jobs:
geesefs-mac-amd64
geesefs-mac-arm64
geesefs-win-x64.exe
- name: Run xfstests
# Often crashes in CI due to memory limits
continue-on-error: true
run: make run-xfstests
timeout-minutes: 10
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
tags:
- "v*"

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19

- name: Build linux amd64
run: env CGO_ENABLED=0 go build -o geesefs-linux-amd64 -v && ln -s geesefs-linux-amd64 geesefs

- name: Build tests
run: go test -c github.com/yandex-cloud/geesefs/internal -o geesefs-tests-linux-amd64

- name: Run tests
run: SAME_PROCESS_MOUNT=1 make run-test

- name: Run xfstests
# Often crashes in CI due to memory limits
continue-on-error: true
run: make run-xfstests
timeout-minutes: 10

0 comments on commit e419f7e

Please sign in to comment.