File tree Expand file tree Collapse file tree
scripts/integration-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,6 +166,14 @@ jobs:
166166 at : /tmp/verdaccio-workspace
167167 - run : BABEL_8_BREAKING=true ./scripts/integration-tests/e2e-jest.sh
168168
169+ e2e-breaking-prettier :
170+ executor : node-executor
171+ steps :
172+ - checkout
173+ - attach_workspace :
174+ at : /tmp/verdaccio-workspace
175+ - run : BABEL_8_BREAKING=true ./scripts/integration-tests/e2e-prettier.sh
176+
169177workflows :
170178 version : 2
171179 build-standalone :
@@ -245,3 +253,6 @@ workflows:
245253 - e2e-breaking-jest :
246254 requires :
247255 - publish-verdaccio-babel-8-breaking
256+ - e2e-breaking-prettier :
257+ requires :
258+ - publish-verdaccio-babel-8-breaking
Original file line number Diff line number Diff line change @@ -446,6 +446,7 @@ jobs:
446446 - vue-cli
447447 - jest
448448 - react-native
449+ - prettier
449450 steps :
450451 - name : Checkout code
451452 uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # ==============================================================================#
4+ # SETUP #
5+ # ==============================================================================#
6+
7+ # Start in scripts/integration-tests/ even if run from root directory
8+ cd " $( dirname " $0 " ) " || exit
9+ root=" $PWD "
10+
11+ source utils/local-registry.sh
12+ source utils/cleanup.sh
13+
14+ # Echo every command being executed
15+ set -x
16+
17+ # Clone prettier
18+ git clone --depth=1 https://github.com/prettier/prettier tmp/prettier
19+ cd tmp/prettier || exit
20+
21+ # Update @babel/* dependencies
22+ bump_deps=" $root /utils/bump-babel-dependencies.js"
23+ node " $bump_deps "
24+
25+ # ==============================================================================#
26+ # ENVIRONMENT #
27+ # ==============================================================================#
28+ node -v
29+ yarn --version
30+
31+ # ==============================================================================#
32+ # TEST #
33+ # ==============================================================================#
34+
35+ # Don't use Yarn 2
36+ export YARN_IGNORE_PATH=1
37+
38+ startLocalRegistry " $root " /verdaccio-config.yml
39+ yarn install
40+
41+ # Only run js,jsx,misc format tests
42+ # Without --runInBand CircleCI hangs.
43+ yarn test " tests/format/(jsx?|misc)/" --update-snapshot --runInBand
44+
45+ cleanup
You can’t perform that action at this time.
0 commit comments