Skip to content

Commit

Permalink
fix (ci): test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Feb 1, 2024
1 parent 111b785 commit a63d7ee
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ jobs:
# # npx eslint .
# npx tsc

test_backend:
needs: [build_frontend, build_backend]
test_prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -102,6 +101,19 @@ jobs:
repository: mickael-kerjean/filestash-test
ssh-key: ${{ secrets.DEPLOY_KEY_FILESTASH_TEST }}
path: test
- uses: actions/upload-artifact@v4
with:
name: test
path: test

test_backend:
needs: [build_frontend, build_backend, test_prepare]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
name: test
- uses: actions/download-artifact@v4
with:
name: build-frontend
Expand All @@ -123,7 +135,7 @@ jobs:
run: go test --tags "fts5" -count=1 $(go list ./server/... | grep -v "server/plugin" | grep -v "server/generator")

test_smoke:
needs: [build_frontend, build_backend]
needs: [build_frontend, build_backend, test_prepare]
runs-on: ubuntu-latest
steps:
- name: Init
Expand All @@ -142,21 +154,6 @@ jobs:
cat access.log | grep -vz "WARN"
cat access.log | grep -vz "ERR"
test_e2e_prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone test repo
uses: actions/checkout@v3
with:
repository: mickael-kerjean/filestash-test
ssh-key: ${{ secrets.DEPLOY_KEY_FILESTASH_TEST }}
path: test
- uses: actions/upload-artifact@v4
with:
name: test
path: test

test_e2e:
needs: [test_smoke, test_e2e_prepare]
runs-on: ubuntu-latest
Expand All @@ -169,12 +166,10 @@ jobs:
CI: true
steps:
- uses: actions/checkout@v3
- name: get back test repo
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
with:
name: test
- name: Restore Build
uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4
with:
name: build
- name: Setup
Expand Down

0 comments on commit a63d7ee

Please sign in to comment.