Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 8 additions & 45 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,19 @@ version: '2.1'
orbs:
docker: circleci/[email protected]

commands:
install-ddev:
steps:
- run:
name: Install DDev
command: |
set -e
sudo rm -rf /etc/apt/sources.list.d/heroku.list
sudo apt-get update
sudo apt-get install ca-certificates
curl https://apt.fury.io/drud/gpg.key | sudo apt-key add -
echo "deb https://apt.fury.io/drud/ * *" | sudo tee -a /etc/apt/sources.list.d/ddev.list
sudo apt update && sudo apt install -y ddev
jobs:
build:
parallelism: 1
machine:
image: ubuntu-2004:current
docker:
- image: cimg/node:23.11.0
steps:
- checkout
- install-ddev
- run:
name: Set up dirs
command: |
cd .. && mv project frontend
mkdir project
name: Install packages
command: npm install
- run:
name: Build Frontend into a full DKAN site
command: |
which ddev
ddev --version
ddev config --project-name test-$CIRCLE_WORKFLOW_JOB_ID --project-type drupal9 --docroot docroot --create-docroot
ddev get getdkan/ddev-dkan
ddev restart
ddev status
ddev dkan-init --force
ddev dkan-site-install
ddev dkan-sample-content
ddev dkan-frontend-install
rm -r docroot/frontend
mv ../frontend docroot/frontend
cd docroot/frontend && npm install
cd ../../
ddev dkan-frontend-build
name: Setup Playwright
command: npx playwright install --with-deps
- run:
name: Run Cypress tests
command: |
cd docroot/frontend && npx cypress run --config baseUrl="http://test-$CIRCLE_WORKFLOW_JOB_ID.ddev.site"

- store_artifacts:
path: dkan/cypress/screenshots
- store_artifacts:
path: dkan/cypress/videos
name: Run Vitest
command: npm run test
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_REACT_APP_ROOT_URL = "/api/1"
VITE_REACT_APP_ROOT_URL = "https://demo.getdkan.org/api/1"
30 changes: 14 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,31 @@
<head>
<meta charset="utf-8" />
<link rel="icon" href="/dkan-avatar-blue.png" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="DKAN is an open-source data management platform."
/>
<link rel="apple-touch-icon" href="/dkan-avatar-blue.png" />
<link href="/src/styles.css" rel="stylesheet">
<link href="/src/swagger-ui.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<title>DKAN data catalog</title>
<script>var global = global || window</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<main id="root"></main>
<script type="module" src="/src/index.jsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
Loading