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 c80371c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 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
7 changes: 6 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
cider/cider-nrepl #:mvn{:version "0.27.2"}}

:aliases
{:carve
{:shadow-cljs
;; 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 ["-Xss4m"]}
:carve
{:extra-deps {borkdude/carve
#:git{:url "https://github.com/borkdude/carve"
:sha "7d87e7fdf471121b4f3cc4b442e6ca39503ca07e"}}
Expand Down
2 changes: 1 addition & 1 deletion shadow-cljs.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:deps true
{:deps {:aliases [:shadow-cljs]}
;; Don't install npm-deps declared in dependencies.
;; If we need them, we install them manually.
;; https://github.com/thheller/shadow-cljs/issues/800#issuecomment-725716087
Expand Down

0 comments on commit c80371c

Please sign in to comment.