Skip to content

Commit

Permalink
Merge pull request #43 from w3bdesign/development
Browse files Browse the repository at this point in the history
Create config.yml
  • Loading branch information
w3bdesign authored Jun 9, 2024
2 parents 679bf59 + e190053 commit 4f62548
Show file tree
Hide file tree
Showing 27 changed files with 12,529 additions and 14,216 deletions.
79 changes: 79 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
version: 2.1
orbs:
cypress: cypress-io/[email protected]
codecov: codecov/[email protected]
executors:
with-chrome-and-firefox:
docker:
- image: "cypress/browsers:node16.14.2-slim-chrome100-ff99-edge"
resource_class: large
jobs:
chromatic-deployment:
docker:
- image: cimg/node:21.7.3
working_directory: ~/chromatic
steps:
- checkout
- restore_cache:
keys:
- pnpm-packages-v1-{{ checksum "pnpm-lock.yaml" }}
- pnpm-packages-cache-v1
- run:
name: Install pnpm package manager
command: |
sudo corepack enable
sudo corepack prepare pnpm@latest-8 --activate
- run:
name: Install Dependencies
command: pnpm install --frozen-lockfile
- run: pnpm run chromatic -- --project-token=${CHROMATIC_PROJECT_TOKEN}
- save_cache:
key: pnpm-packages-v1-{{ checksum "pnpm-lock.yaml" }}
paths:
- ~/.pnpm-store
build:
working_directory: /home/circleci/dfweb
docker:
- image: cimg/node:21.7.3-browsers
steps:
- checkout
- restore_cache:
key: pnpm-cache-v2-{{ checksum "pnpm-lock.yaml" }}
- run:
name: Install pnpm package manager
command: |
sudo corepack enable
sudo corepack prepare pnpm@latest-8 --activate
- run:
name: Install Dependencies
command: pnpm install --no-frozen-lockfile
- run:
name: Chrome key start setup
command: sudo apt update -y
- run:
name: Chrome key finish setup
command: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- run:
name: Chrome package download
command: sudo apt install ./google-chrome-stable_current_amd64.deb
- save_cache:
key: pnpm-cache-v2-{{ checksum "pnpm-lock.yaml" }}
paths:
- ~/.pnpm-store
- store_artifacts:
path: /root/.npm/_logs
- run:
name: Run Jest Tests
command: pnpm test
- codecov/upload
parallelism: 6
workflows:
chromatic-deploy:
jobs:
- build:
name: Build Next.js project
#- cypress/run:
#name: Run Cypress E2E tests with Electron
#cypress-command: npx cypress run --browser electron
#start-command: pnpm run dev
#parallelism: 8
96 changes: 0 additions & 96 deletions .github/workflows/lighthouse.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/playwright.yml

This file was deleted.

6 changes: 6 additions & 0 deletions __mocks__/categories.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{ "id": 1, "name": "React" },
{ "id": 2, "name": "Typescript" },
{ "id": 3, "name": "Vue" },
{ "id": 4, "name": "PHP" }
]
15 changes: 15 additions & 0 deletions __mocks__/hero.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"content": [
{ " _key": "123", "_type": "herocontent", "text": "Hei!" },
{
"_key": "456",
"_type": "herocontent",
"text": "Jeg heter Daniel Fjeldstad og er en webutvikler."
},
{
"_key": "678",
"_type": "herocontent",
"text": "Jeg kan PHP, Wordpress, Javascript, Typescript, React, Vue, Docker, Photoshop og mye mer."
}
]
}
32 changes: 32 additions & 0 deletions __mocks__/links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"Text": "Hjem",
"Url": "/",
"id": 1,
"External": false
},
{
"Text": "Prosjekter",
"Url": "/prosjekter",
"id": 2,
"External": false
},
{
"Text": "CV",
"Url": "/cv",
"id": 3,
"External": false
},
{
"Text": "Github",
"Url": "https://www.github.com/w3bdesign",
"id": 4,
"External": true
},
{
"Text": "Kontakt",
"Url": "/kontakt",
"id": 5,
"External": false
}
]
Loading

0 comments on commit 4f62548

Please sign in to comment.