-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/release-DHIS2-18441-and-DHIS2-13038' into feat/gri…
…d-improvements
- Loading branch information
Showing
214 changed files
with
3,560 additions
and
4,077 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,49 @@ | ||
name: 'This workflow creates bill of material and uploads it to Dependency-Track each night' | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow}}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
create-bom: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Install CycloneDX CLI | ||
run: | | ||
curl -s https://api.github.com/repos/CycloneDX/cyclonedx-cli/releases/latest | grep "browser_download_url.*linux.x64" | cut -d '"' -f 4 | wget -i - | ||
sudo mv cyclonedx-linux-x64 /usr/local/bin/ | ||
sudo chmod +x /usr/local/bin/cyclonedx-linux-x64 | ||
- name: Generate BOMs | ||
run: | | ||
npm install -g @cyclonedx/cdxgen | ||
cdxgen -o sbom.json | ||
- name: Upload SBOM to DependencyTrack | ||
env: | ||
DEPENDENCY_TRACK_API: 'https://dt.security.dhis2.org/api/v1/bom' | ||
run: | | ||
curl -X POST "$DEPENDENCY_TRACK_API" \ | ||
--fail-with-body \ | ||
-H "Content-Type: multipart/form-data" \ | ||
-H "X-Api-Key: ${{ secrets.DEPENDENCYTRACK_APIKEY }}" \ | ||
-F "project=c0bd0f2d-d512-460a-81f9-e256e4fb1054" \ | ||
-F "bom=@sbom.json" |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { When } from '@badeball/cypress-cucumber-preprocessor' | ||
import { clickViewActionButton } from '../../elements/viewDashboard.js' | ||
|
||
When('I click to preview the print layout', () => { | ||
clickViewActionButton('More') | ||
cy.get('[data-test="more-actions-button"]').click() | ||
cy.get('[data-test="print-menu-item"]').click() | ||
cy.get('[data-test="print-layout-menu-item"]').click() | ||
}) |
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
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,31 @@ | ||
Feature: Slideshow | ||
|
||
Scenario: I view a dashboard in slideshow | ||
Given I open the "Delivery" dashboard | ||
When I click the slideshow button | ||
Then item 1 is shown in fullscreen | ||
When I click the next slide button | ||
Then item 2 is shown in fullscreen | ||
When I click the previous slide button | ||
Then item 1 is shown in fullscreen | ||
When I click the exit slideshow button | ||
Then the normal view is shown | ||
|
||
|
||
Scenario: I view fullscreen on the second item of the dashboard | ||
Given I open the "Delivery" dashboard | ||
When I click the fullscreen button on the second item | ||
Then item 2 is shown in fullscreen | ||
When I click the exit slideshow button | ||
Then the normal view is shown | ||
|
||
Scenario: I view fullscreen on the third item of the dashboard and navigate backwards | ||
Given I open the "Delivery" dashboard | ||
When I click the fullscreen button on the third item | ||
Then item 3 is shown in fullscreen | ||
When I click the previous slide button | ||
Then item 2 is shown in fullscreen | ||
When I click the previous slide button | ||
Then item 1 is shown in fullscreen | ||
When I click the exit slideshow button | ||
Then the normal view is shown |
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 @@ | ||
'../common/index.js' |
Oops, something went wrong.