Skip to content

Commit

Permalink
Reenable the smoke tests in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
toch committed Nov 6, 2024
1 parent 3958409 commit 2bc0e87
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build_debian_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ jobs:
sudo dpkg -i openhexa_*_amd64.deb
/usr/share/openhexa/setup.sh -g check
- name: Setup OpenHexa if run locally
if: ${{ env.ACT }}
run: |
set -x
sed -i -e "s%^.*WORKSPACE_STORAGE_LOCATION=.*$%WORKSPACE_STORAGE_LOCATION=\"${GITHUB_WORKSPACE}/workspaces\"%" /etc/openhexa/env.conf
set +x
- name: Start OpenHexa if run locally
if: ${{ env.ACT }}
run: /usr/share/openhexa/openhexa.sh -g start
Expand All @@ -116,13 +123,15 @@ jobs:

- name: Install smoke tests dependencies
working-directory: ./smoke-tests
run: npm ci
run: |
npm install
npm ci
- name: Build smoke tests image
working-directory: ./smoke-tests
run: docker build -t openhexa/smoke-tests .
# - name: Run smoke tests
# run: docker run -t --net=host -v "$(pwd)/test-results:/code/test-results" openhexa/smoke-tests http://localhost:3000/ [email protected] root
- name: Run smoke tests
run: docker run -t --net=host -v "$(pwd)/test-results:/code/test-results" openhexa/smoke-tests http://localhost:3000/ [email protected] root
- name: Keep test results
uses: actions/upload-artifact@v4
with:
Expand All @@ -140,6 +149,7 @@ jobs:
name: Create APT repo
needs: install
runs-on: ubuntu-latest
if: ${{ ! env.ACT }}
outputs:
artifact_id: ${{ steps.upload-artifact.outputs.artifact-id }}
keyring: ${{ steps.create-apt-repo.outputs.keyring }}
Expand All @@ -166,7 +176,7 @@ jobs:
permissions:
id-token: write
pages: write
if: github.ref_name == 'main'
if: ${{ github.ref_name == 'main' && ! env.ACT }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.envlocal
test-results/
.secrets
openhexa.nginx
openhexa.nginx
workspaces/
Empty file added orkspaces
Empty file.
1 change: 1 addition & 0 deletions orkspaces"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WORKSPACE_STORAGE_LOCATION="${GITHUB_WORKSPACE}

0 comments on commit 2bc0e87

Please sign in to comment.