mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Add minor improvements to CI config
This commit is contained in:
parent
2a9b99e086
commit
efd0ad802c
6 changed files with 43 additions and 22 deletions
|
@ -29,6 +29,7 @@ jobs:
|
||||||
|
|
||||||
- run: cd .clj-kondo && cat config.edn
|
- run: cd .clj-kondo && cat config.edn
|
||||||
- run: cat .cljfmt.edn
|
- run: cat .cljfmt.edn
|
||||||
|
- run: clj-kondo --version
|
||||||
|
|
||||||
# - run:
|
# - run:
|
||||||
# name: "fmt check [clj]"
|
# name: "fmt check [clj]"
|
||||||
|
@ -36,22 +37,38 @@ jobs:
|
||||||
# yarn run fmt:clj:check
|
# yarn run fmt:clj:check
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "lint [clj]"
|
name: common lint
|
||||||
|
working_directory: "./common"
|
||||||
command: |
|
command: |
|
||||||
|
yarn install
|
||||||
yarn run lint:clj
|
yarn run lint:clj
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "lint [scss]"
|
name: frontend lint
|
||||||
working_directory: "./frontend"
|
working_directory: "./frontend"
|
||||||
command: |
|
command: |
|
||||||
yarn install
|
yarn install
|
||||||
yarn run lint:scss
|
yarn run lint:scss
|
||||||
|
yarn run lint:clj
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "tests [common]"
|
name: backend lint
|
||||||
working_directory: "./common"
|
working_directory: "./backend"
|
||||||
command: |
|
command: |
|
||||||
yarn install
|
yarn install
|
||||||
|
yarn run lint:clj
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: exporter lint
|
||||||
|
working_directory: "./exporter"
|
||||||
|
command: |
|
||||||
|
yarn install
|
||||||
|
yarn run lint:clj
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: "common tests"
|
||||||
|
working_directory: "./common"
|
||||||
|
command: |
|
||||||
yarn test
|
yarn test
|
||||||
clojure -X:dev:test :patterns '["common-tests.*-test"]'
|
clojure -X:dev:test :patterns '["common-tests.*-test"]'
|
||||||
|
|
||||||
|
@ -61,7 +78,18 @@ jobs:
|
||||||
NODE_OPTIONS: --max-old-space-size=4096
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "tests [backend]"
|
name: "frontend tests"
|
||||||
|
working_directory: "./frontend"
|
||||||
|
command: |
|
||||||
|
yarn install
|
||||||
|
yarn test
|
||||||
|
|
||||||
|
environment:
|
||||||
|
PATH: /usr/local/nodejs/bin/:/usr/local/bin:/bin:/usr/bin
|
||||||
|
NODE_OPTIONS: --max-old-space-size=4096
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: "backend tests"
|
||||||
working_directory: "./backend"
|
working_directory: "./backend"
|
||||||
command: |
|
command: |
|
||||||
clojure -X:dev:test :patterns '["backend-tests.*-test"]'
|
clojure -X:dev:test :patterns '["backend-tests.*-test"]'
|
||||||
|
@ -73,17 +101,6 @@ jobs:
|
||||||
PENPOT_TEST_REDIS_URI: "redis://localhost/1"
|
PENPOT_TEST_REDIS_URI: "redis://localhost/1"
|
||||||
JVM_OPTS: -Xmx4g
|
JVM_OPTS: -Xmx4g
|
||||||
|
|
||||||
- run:
|
|
||||||
name: "tests [frontend]"
|
|
||||||
working_directory: "./frontend"
|
|
||||||
command: |
|
|
||||||
yarn install
|
|
||||||
yarn test
|
|
||||||
|
|
||||||
environment:
|
|
||||||
PATH: /usr/local/nodejs/bin/:/usr/local/bin:/bin:/usr/bin
|
|
||||||
NODE_OPTIONS: --max-old-space-size=4096
|
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
|
|
|
@ -25,9 +25,9 @@
|
||||||
:output
|
:output
|
||||||
{:exclude-files
|
{:exclude-files
|
||||||
["data_readers.clj"
|
["data_readers.clj"
|
||||||
"frontend/src/app/util/perf.cljs"
|
"src/app/util/perf.cljs"
|
||||||
"common/src/app/common/logging.cljc"
|
"src/app/common/logging.cljc"
|
||||||
"common/src/app/common/exceptions.cljc"
|
"src/app/common/exceptions.cljc"
|
||||||
"^(?:backend|frontend|exporter|common)/build.clj"
|
"^(?:backend|frontend|exporter|common)/build.clj"
|
||||||
"^(?:backend|frontend|exporter|common)/deps.edn"
|
"^(?:backend|frontend|exporter|common)/deps.edn"
|
||||||
"^(?:backend|frontend|exporter|common)/scripts/"
|
"^(?:backend|frontend|exporter|common)/scripts/"
|
||||||
|
|
|
@ -20,6 +20,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/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +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/",
|
||||||
"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",
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"fmt:clj:check": "cljfmt check --parallel=false src/",
|
"fmt:clj:check": "cljfmt check --parallel=false src/",
|
||||||
"fmt:clj": "cljfmt fix --parallel=true src/"
|
"fmt:clj": "cljfmt fix --parallel=true src/",
|
||||||
|
"lint:clj": "clj-kondo --parallel --lint src/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
"fmt:clj": "cljfmt fix --parallel=true src/ test/",
|
"fmt:clj": "cljfmt fix --parallel=true src/ 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}'",
|
||||||
"lint:scss": "yarn run prettier -c resources/styles -c src/**/*.scss",
|
"lint:scss": "yarn run prettier -c resources/styles -c src/**/*.scss",
|
||||||
"lint:fix": "yarn run prettier -c resources/styles -c src/**/*.scss -w",
|
"lint:scss:fix": "yarn run prettier -c resources/styles -c src/**/*.scss -w",
|
||||||
|
"lint:clj": "clj-kondo --parallel --lint src/",
|
||||||
"test:run": "node target/tests.js",
|
"test:run": "node target/tests.js",
|
||||||
"test:watch": "clojure -M:dev:shadow-cljs watch test",
|
"test:watch": "clojure -M:dev:shadow-cljs watch test",
|
||||||
"test": "yarn run test:compile && yarn run test:run",
|
"test": "yarn run test:compile && yarn run test:run",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue