-
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.
- Loading branch information
Showing
18 changed files
with
222 additions
and
45 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
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,40 @@ | ||
name: GitHub Pages Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop-2 | ||
pull_request: | ||
branches: | ||
- develop-2 | ||
|
||
jobs: | ||
gh-pages-deploy: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [16] | ||
|
||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/checkout@master | ||
|
||
- name: Install dependencies 👨🏻💻 | ||
run: npm ci --prefer-offline --no-audit | ||
|
||
- name: Github Pages Build | ||
run: npm run generate:gh-pages | ||
env: | ||
REST_API_URL: ${{ secrets.REST_API_URL }} | ||
SCIENTIFIC_SERVICE_URL: ${{ secrets.SCIENTIFIC_SERVICE_URL }} | ||
OEB_LEGACY_ANGULAR_URI: ${{ secrets.OEB_LEGACY_ANGULAR_URI }} | ||
VRE_URI: ${{ secrets.VRE_URI }} | ||
OBSERVATORY_URI: ${{ secrets.OBSERVATORY_URI }} | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist |
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
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
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
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
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
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
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,27 @@ | ||
import { mount } from '@vue/test-utils'; | ||
import Community from './_id.vue'; | ||
|
||
const factory = () => { | ||
return mount(Community, { | ||
...createComponentMocks({}), | ||
mocks: { | ||
$route: { params: { community: 'TESTCOMMUNITY', id: 'TESTID' } }, | ||
$config: { OEB_LEGACY_ANGULAR_URI: 'https://jest-openebench.bsc.es/' }, | ||
}, | ||
}); | ||
}; | ||
|
||
describe('Community Participant', () => { | ||
it('is instantiated', () => { | ||
const wrapper = factory(); | ||
expect(wrapper).toBeTruthy(); | ||
}); | ||
|
||
it('sets the iframe url according to env variable', () => { | ||
const wrapper = factory(); | ||
expect(wrapper.vm.hostName).toBe('https://jest-openebench.bsc.es/'); | ||
expect(wrapper.find('iframe').attributes('src')).toBe( | ||
'https://jest-openebench.bsc.es/scientific/TESTCOMMUNITY/TESTID' | ||
); | ||
}); | ||
}); |
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,28 @@ | ||
<template> | ||
<iframe | ||
:src=" | ||
hostName + | ||
`scientific/` + | ||
$route.params.community + | ||
`/` + | ||
$route.params.id | ||
" | ||
width="100%" | ||
height="100%" | ||
frameborder="0" | ||
class="mt-5" | ||
> | ||
</iframe> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'ScientificBenchmarkingPage', | ||
layout: 'embedIframeFullWidth', | ||
data() { | ||
return { | ||
hostName: this.$config.OEB_LEGACY_ANGULAR_URI, | ||
}; | ||
}, | ||
}; | ||
</script> |
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,27 @@ | ||
import { mount } from '@vue/test-utils'; | ||
import Community from './index.vue'; | ||
|
||
const factory = () => { | ||
return mount(Community, { | ||
...createComponentMocks({}), | ||
mocks: { | ||
$route: { params: { community: 'TESTID' } }, | ||
$config: { OEB_LEGACY_ANGULAR_URI: 'https://jest-openebench.bsc.es/' }, | ||
}, | ||
}); | ||
}; | ||
|
||
describe('Community', () => { | ||
it('is instantiated', () => { | ||
const wrapper = factory(); | ||
expect(wrapper).toBeTruthy(); | ||
}); | ||
|
||
it('sets the iframe url according to env variable', () => { | ||
const wrapper = factory(); | ||
expect(wrapper.vm.hostName).toBe('https://jest-openebench.bsc.es/'); | ||
expect(wrapper.find('iframe').attributes('src')).toBe( | ||
'https://jest-openebench.bsc.es/scientific/TESTID' | ||
); | ||
}); | ||
}); |
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,22 @@ | ||
<template> | ||
<iframe | ||
:src="hostName + `scientific/` + $route.params.community" | ||
width="100%" | ||
height="100%" | ||
frameborder="0" | ||
class="mt-5" | ||
> | ||
</iframe> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'ScientificBenchmarkingPage', | ||
layout: 'embedIframeFullWidth', | ||
data() { | ||
return { | ||
hostName: this.$config.OEB_LEGACY_ANGULAR_URI, | ||
}; | ||
}, | ||
}; | ||
</script> |
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
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
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,27 @@ | ||
import { mount } from '@vue/test-utils'; | ||
import Tool from './_id.vue'; | ||
|
||
const factory = () => { | ||
return mount(Tool, { | ||
...createComponentMocks({}), | ||
mocks: { | ||
$route: { params: { id: 'TESTID' } }, | ||
$config: { OEB_LEGACY_ANGULAR_URI: 'https://jest-openebench.bsc.es/' }, | ||
}, | ||
}); | ||
}; | ||
|
||
describe('Tool', () => { | ||
it('is instantiated', () => { | ||
const wrapper = factory(); | ||
expect(wrapper).toBeTruthy(); | ||
}); | ||
|
||
it('sets the iframe url according to env variable', () => { | ||
const wrapper = factory(); | ||
expect(wrapper.vm.hostName).toBe('https://jest-openebench.bsc.es/'); | ||
expect(wrapper.find('iframe').attributes('src')).toBe( | ||
'https://jest-openebench.bsc.es/tool/TESTID' | ||
); | ||
}); | ||
}); |
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,22 @@ | ||
<template> | ||
<iframe | ||
:src="hostName + `tool/` + $route.params.id" | ||
width="100%" | ||
height="100%" | ||
frameborder="0" | ||
class="mt-5" | ||
> | ||
</iframe> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'ToolsMonitoringIdPage', | ||
layout: 'embedIframe', | ||
data() { | ||
return { | ||
hostName: this.$config.OEB_LEGACY_ANGULAR_URI, | ||
}; | ||
}, | ||
}; | ||
</script> |
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
File renamed without changes.