-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reenable the smoke tests in Github Actions
- Loading branch information
Showing
4 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
.envlocal | ||
test-results/ | ||
.secrets | ||
openhexa.nginx | ||
openhexa.nginx | ||
workspaces/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WORKSPACE_STORAGE_LOCATION="${GITHUB_WORKSPACE} |