mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05:00
✨ Add minor improvements to circleci config
This commit is contained in:
parent
a9d3dfab1a
commit
5b35cf7456
2 changed files with 47 additions and 9 deletions
|
@ -64,6 +64,13 @@ jobs:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "frontend/deps.edn"}}
|
- v1-dependencies-{{ checksum "frontend/deps.edn"}}
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: "prepopulate linter cache"
|
||||||
|
working_directory: "./common"
|
||||||
|
command: |
|
||||||
|
yarn install
|
||||||
|
yarn run lint:clj
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "fmt check & linter"
|
name: "fmt check & linter"
|
||||||
working_directory: "./frontend"
|
working_directory: "./frontend"
|
||||||
|
@ -81,6 +88,31 @@ jobs:
|
||||||
yarn install
|
yarn install
|
||||||
yarn test
|
yarn test
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- ~/.m2
|
||||||
|
key: v1-dependencies-{{ checksum "frontend/deps.edn"}}
|
||||||
|
|
||||||
|
|
||||||
|
test-integration:
|
||||||
|
docker:
|
||||||
|
- image: penpotapp/devenv:latest
|
||||||
|
|
||||||
|
working_directory: ~/repo
|
||||||
|
resource_class: medium+
|
||||||
|
|
||||||
|
environment:
|
||||||
|
JAVA_OPTS: -Xmx4g -Xms100m -XX:+UseSerialGC
|
||||||
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
# Download and cache dependencies
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v1-dependencies-{{ checksum "frontend/deps.edn"}}
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "integration tests"
|
name: "integration tests"
|
||||||
working_directory: "./frontend"
|
working_directory: "./frontend"
|
||||||
|
@ -91,11 +123,6 @@ jobs:
|
||||||
yarn run playwright install --with-deps chromium
|
yarn run playwright install --with-deps chromium
|
||||||
yarn run test:e2e
|
yarn run test:e2e
|
||||||
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- ~/.m2
|
|
||||||
key: v1-dependencies-{{ checksum "frontend/deps.edn"}}
|
|
||||||
|
|
||||||
test-backend:
|
test-backend:
|
||||||
docker:
|
docker:
|
||||||
- image: penpotapp/devenv:latest
|
- image: penpotapp/devenv:latest
|
||||||
|
@ -120,6 +147,13 @@ jobs:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "backend/deps.edn" }}
|
- v1-dependencies-{{ checksum "backend/deps.edn" }}
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: "prepopulate linter cache"
|
||||||
|
working_directory: "./common"
|
||||||
|
command: |
|
||||||
|
yarn install
|
||||||
|
yarn run lint:clj
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "fmt check & linter"
|
name: "fmt check & linter"
|
||||||
working_directory: "./backend"
|
working_directory: "./backend"
|
||||||
|
@ -160,9 +194,12 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- run: cd .clj-kondo && cat config.edn
|
- run:
|
||||||
- run: cat .cljfmt.edn
|
name: "prepopulate linter cache"
|
||||||
- run: clj-kondo --version
|
working_directory: "./common"
|
||||||
|
command: |
|
||||||
|
yarn install
|
||||||
|
yarn run lint:clj
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "fmt check & linter"
|
name: "fmt check & linter"
|
||||||
|
@ -176,6 +213,7 @@ workflows:
|
||||||
penpot:
|
penpot:
|
||||||
jobs:
|
jobs:
|
||||||
- test-frontend
|
- test-frontend
|
||||||
|
- test-integration
|
||||||
- test-backend
|
- test-backend
|
||||||
- test-common
|
- test-common
|
||||||
- test-exporter
|
- test-exporter
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fmt:clj:check": "cljfmt check --parallel=false src/ test/",
|
"fmt:clj:check": "cljfmt check --parallel=false src/ test/",
|
||||||
"fmt:clj": "cljfmt fix --parallel=true src/ test/",
|
"fmt:clj": "cljfmt fix --parallel=true src/ test/",
|
||||||
"lint:clj": "clj-kondo --parallel --lint src/",
|
"lint:clj": "clj-kondo --parallel=true --lint src/",
|
||||||
"test:watch": "clojure -M:dev:shadow-cljs watch test",
|
"test:watch": "clojure -M:dev:shadow-cljs watch test",
|
||||||
"test:compile": "clojure -M:dev:shadow-cljs compile test --config-merge '{:autorun false}'",
|
"test:compile": "clojure -M:dev:shadow-cljs compile test --config-merge '{:autorun false}'",
|
||||||
"test:run": "node target/test.js",
|
"test:run": "node target/test.js",
|
||||||
|
|
Loading…
Reference in a new issue