mirror of
https://github.com/logseq/logseq.git
synced 2026-05-16 00:42:20 +00:00
* chore(deps): upgrade Clojure version to 1.12.4 across multiple dependency files * chore: bump shadow-cljs to 3.3.6 * chore: bump org.clojure/clojurescript to 1.12.134 * chore(deps): upgrade Clojure version to 1.12.4 in workflow files * chore(deps): upgrade Java version to 21 in workflow files * chore(deps): upgrade Node.js version to 24 in workflow files * chore(deps): upgrade Node.js version to 24 in Dockerfile * feat(updater): migrate electron-forge to electron-builder * fix wrong android app version * fix workflow * feat(dependency-upgrade): add max-update-interval option for dependency audits * chore(deps): upgrade electron-builder and electron-updater * fix: update manual verification instructions for Electron shim cache * chore: update shadow-cljs version to 3.4.4 across all dependencies * chore: upgrade electron version to 41.2.1 * chore: update metosin/malli dependency to latest * chore: upgrade cider-nrepl version to 0.59.0 in dependencies * chore: upgrade clj-kondo version to 2026.04.15 and fix warning * chore: move Electron windows build configuration from yml to ci * chore: update Electron signing configuration to extend from base config * fix: replace icon file for NSIS compatibility * chore: resolve metosin/malli version conflicts * chore: upgrade jdk to 21 in e2e workflow --------- Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
112 lines
2.8 KiB
YAML
112 lines
2.8 KiB
YAML
name: Clojure E2E
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'clj-e2e/**'
|
|
- '.github/workflows/clj-e2e.yml'
|
|
- src/**
|
|
- deps/**
|
|
- packages/**
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- 'clj-e2e/**'
|
|
- '.github/workflows/clj-e2e.yml'
|
|
- src/**
|
|
- deps/**
|
|
- packages/**
|
|
|
|
env:
|
|
CLOJURE_VERSION: '1.12.4.1618'
|
|
JAVA_VERSION: '21'
|
|
# This is the latest node version we can run.
|
|
NODE_VERSION: '24'
|
|
BABASHKA_VERSION: '1.12.215'
|
|
|
|
jobs:
|
|
e2e-test-build:
|
|
name: Test
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: 'yarn'
|
|
cache-dependency-path: |
|
|
yarn.lock
|
|
|
|
- name: Set up Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
|
|
- name: Set up Clojure
|
|
uses: DeLaGuardo/setup-clojure@13.5
|
|
with:
|
|
cli: ${{ env.CLOJURE_VERSION }}
|
|
bb: ${{ env.BABASHKA_VERSION }}
|
|
|
|
- name: Clojure cache
|
|
uses: actions/cache@v4
|
|
id: clojure-deps
|
|
with:
|
|
path: |
|
|
~/.m2/repository
|
|
~/.gitlibs
|
|
key: ${{ runner.os }}-clojure-deps-${{ hashFiles('deps.edn') }}
|
|
restore-keys: ${{ runner.os }}-clojure-deps-
|
|
|
|
- name: Fetch Clojure deps
|
|
if: steps.clojure-deps.outputs.cache-hit != 'true'
|
|
run: clojure -A:cljs -P
|
|
|
|
- name: Shadow-cljs cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .shadow-cljs
|
|
# ensure update cache every time
|
|
key: ${{ runner.os }}-shadow-cljs-${{ github.sha }}
|
|
# will match most recent upload
|
|
restore-keys: |
|
|
${{ runner.os }}-shadow-cljs-
|
|
|
|
- name: Fetch yarn deps
|
|
run: yarn install
|
|
env:
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
|
|
|
|
# NOTE: require the app to be build with DEV-RELEASE flag
|
|
- name: Prepare E2E test build
|
|
run: |
|
|
yarn gulp:build && clojure -M:cljs release app db-worker --config-merge "{:closure-defines {frontend.config/DEV-RELEASE true}}" --debug && yarn webpack-app-build
|
|
|
|
- name: Run e2e tests
|
|
run: cd clj-e2e && timeout 30m bb dev
|
|
# env:
|
|
# DEBUG: "pw:api"
|
|
|
|
- name: Collect screenshots
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: e2e-screenshots
|
|
path: clj-e2e/e2e-dump/*
|
|
retention-days: 1
|
|
|
|
- name: Mark success
|
|
if: ${{ success() }}
|
|
run: echo "E2E OK" > e2e-success.txt
|
|
|
|
- name: Upload success artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: e2e-success
|
|
path: e2e-success.txt
|