0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

📎 Enable frontend integration tests

This commit is contained in:
Andrey Antukh 2024-05-23 13:21:15 +02:00
parent 7e5068f38e
commit d9e4ee67c3
2 changed files with 18 additions and 17 deletions

View file

@ -32,42 +32,42 @@ jobs:
- run: clj-kondo --version - run: clj-kondo --version
- run: - run:
name: "fmt check backend [clj]" name: "backend fmt check"
working_directory: "./backend" working_directory: "./backend"
command: | command: |
yarn install yarn install
yarn run fmt:clj:check yarn run fmt:clj:check
- run: - run:
name: "fmt check exporter [clj]" name: "exporter fmt check"
working_directory: "./exporter" working_directory: "./exporter"
command: | command: |
yarn install yarn install
yarn run fmt:clj:check yarn run fmt:clj:check
- run: - run:
name: "fmt check common [clj]" name: "common fmt check"
working_directory: "./common" working_directory: "./common"
command: | command: |
yarn install yarn install
yarn run fmt:clj:check yarn run fmt:clj:check
- run: - run:
name: "fmt check frontend [clj]" name: "frontend fmt check"
working_directory: "./frontend" working_directory: "./frontend"
command: | command: |
yarn install yarn install
yarn run fmt:clj:check yarn run fmt:clj:check
- run: - run:
name: common lint name: "common linter check"
working_directory: "./common" working_directory: "./common"
command: | command: |
yarn install yarn install
yarn run lint:clj yarn run lint:clj
- run: - run:
name: frontend lint name: "frontend linter check"
working_directory: "./frontend" working_directory: "./frontend"
command: | command: |
yarn install yarn install
@ -75,14 +75,14 @@ jobs:
yarn run lint:clj yarn run lint:clj
- run: - run:
name: backend lint name: "backend linter check"
working_directory: "./backend" working_directory: "./backend"
command: | command: |
yarn install yarn install
yarn run lint:clj yarn run lint:clj
- run: - run:
name: exporter lint name: "exporter linter check"
working_directory: "./exporter" working_directory: "./exporter"
command: | command: |
yarn install yarn install
@ -102,15 +102,15 @@ jobs:
yarn install yarn install
yarn test yarn test
# - run: - run:
# name: "frontend integration tests" name: "frontend integration tests"
# working_directory: "./frontend" working_directory: "./frontend"
# command: | command: |
# yarn install yarn install
# yarn run compile yarn run compile
# clojure -M:dev:shadow-cljs compile main yarn run compile:cljs
# yarn playwright install --with-deps chromium yarn playwright install --with-deps chromium
# yarn e2e:test yarn e2e:test
- run: - run:
name: "backend tests" name: "backend tests"

View file

@ -29,6 +29,7 @@
"translations:validate": "node ./scripts/validate-translations.js", "translations:validate": "node ./scripts/validate-translations.js",
"translations:find-unused": "node ./scripts/find-unused-translations.js", "translations:find-unused": "node ./scripts/find-unused-translations.js",
"compile": "node ./scripts/compile.js", "compile": "node ./scripts/compile.js",
"compile:cljs": "clojure -M:dev:shadow-cljs compile main",
"watch": "node ./scripts/watch.js", "watch": "node ./scripts/watch.js",
"e2e:server": "node ./scripts/e2e-server.js", "e2e:server": "node ./scripts/e2e-server.js",
"e2e:test": "playwright test", "e2e:test": "playwright test",