Skip to content

Commit

Permalink
ci: re-enable e2e job
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Jul 27, 2022
1 parent 07a79a5 commit a3e9f35
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,30 +73,30 @@ jobs:
# run: yarn server:test:fluree


# e2e:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/custom-actions/clojure-env
# - uses: ./.github/custom-actions/node-env

# # Caching the build is generally a terrible idea, but e2e is really slow
# # and shadow-cljs is usually pretty good at cache invalidation.
# # Still, if you think this cache is breaking builds, just bump the version number.
# - name: Restore shadow-cljs build cache
# uses: actions/cache@v2
# id: restore-shadow-cljs-build-cache
# with:
# path: ./.shadow-cljs
# key: ${{ runner.os }}-v2-shadow-cljs-build-cache-${{ hashFiles('yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-v2-shadow-cljs-build-cache

# - name: Compile JS assets for dev
# run: yarn client:dev-build

# - name: Run client e2e tests over dev build
# run: yarn client:e2e
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/custom-actions/clojure-env
- uses: ./.github/custom-actions/node-env

# Caching the build is generally a terrible idea, but e2e is really slow
# and shadow-cljs is usually pretty good at cache invalidation.
# Still, if you think this cache is breaking builds, just bump the version number.
- name: Restore shadow-cljs build cache
uses: actions/cache@v2
id: restore-shadow-cljs-build-cache
with:
path: ./.shadow-cljs
key: ${{ runner.os }}-v2-shadow-cljs-build-cache-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-v2-shadow-cljs-build-cache
- name: Compile JS assets for dev
run: yarn client:dev-build

- name: Run client e2e tests over dev build
run: yarn client:e2e


build-app:
Expand Down
4 changes: 4 additions & 0 deletions shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
;; https://github.com/thheller/shadow-cljs/issues/800#issuecomment-725716087
:npm-deps {:install false}
:nrepl {:port 8777}
;; Increase max JVM stack size.
;; Without this, the node_modules/highlight.js/lib/languages/isbl.js file will randomly break the e2e CI job
;; because the Google Closure Compiler can't parse it without busting the stack size.
:jvm-opts ["-Xss1m"]
:builds {
;; pure browser https://athensresearch.github.io/athens
:app {:target :browser
Expand Down

0 comments on commit a3e9f35

Please sign in to comment.