Skip to content

Support 'clear filter' & fix the filter dialog bug #383

Support 'clear filter' & fix the filter dialog bug

Support 'clear filter' & fix the filter dialog bug #383

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
actions: read
checks: write
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-core-web:
runs-on: ubuntu-22.04
services:
postgres:
image: pgvector/pgvector:pg16
env:
POSTGRES_DB: backdoor_test
POSTGRES_USER: backdoor_test_user
POSTGRES_PASSWORD: test
ports:
- 5432:5432
clickhouse:
image: clickhouse/clickhouse-server:25.8-alpine
env:
CLICKHOUSE_DB: backdoor_test
CLICKHOUSE_USER: backdoor
CLICKHOUSE_PASSWORD: test_ch
ports:
- 8123:8123
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: 'gradle'
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: browser-actions/setup-chrome@v2
with:
chrome-version: '146'
install-chromedriver: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
- name: Install Node modules
run: npm install
- name: Run tests
run: |
./gradlew --no-daemon :web:jacocoTestReport :core:jacocoTestReport
env:
HEADLESS: true
SENTRY_DSN: 'dummy'
SENTRY_WEBVIEW_DSN: 'dummy'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: ${{ !cancelled() }}
with:
require_tests: true
report_paths: '**/build/test-results/test/*.xml'
- name: Upload Failed Screenshots
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: failed-screenshots
path: '**/build/failed-screenshots/'
build-desktop-mac:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Import Signing Certificate
run: |
# Create a temporary keychain
security create-keychain -p "$KEYCHAIN_TEMP_PASSWORD" build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p "$KEYCHAIN_TEMP_PASSWORD" build.keychain
echo "Unlock build.keychain"
echo "$BASE64_DEV_APP_CERT" | base64 --decode > devapp.cert
security import devapp.cert -k build.keychain -A -T /usr/bin/codesign
echo "Imported dev app cert"
echo "$BASE64_DEV_APP_PRIVATE_KEY" | base64 --decode > devapp.p12
security import devapp.p12 -k build.keychain -A -P opensesame -T /usr/bin/codesign
echo "Imported dev app private key"
echo "$BASE64_MAC_DEV_APP_CERT" | base64 --decode > macdevapp.cert
security import macdevapp.cert -k build.keychain -A -T /usr/bin/codesign
echo "Imported mac dev app cert"
echo "$BASE64_MAC_DEV_APP_PRIVATE_KEY" | base64 --decode > macdevapp.p12
security import macdevapp.p12 -k build.keychain -A -P opensesame -T /usr/bin/codesign
echo "Imported mac dev app private key"
echo "$BASE64_MAC_DEV_INSTALL_CERT" | base64 --decode > macdevinstall.cert
security import macdevinstall.cert -k build.keychain -A -T /usr/bin/codesign
echo "Imported mac dev install cert"
echo "$BASE64_MAC_DEV_INSTALL_PRIVATE_KEY" | base64 --decode > macdevinstall.p12
security import macdevinstall.p12 -k build.keychain -A -P opensesame -T /usr/bin/productbuild
echo "Imported mac dev install private key"
security set-key-partition-list -S apple-tool:,apple: -s -k "$KEYCHAIN_TEMP_PASSWORD" build.keychain
env:
KEYCHAIN_TEMP_PASSWORD: opensesame
BASE64_DEV_APP_CERT: ${{ secrets.BASE64_DEV_APP_CERT }}
BASE64_DEV_APP_PRIVATE_KEY: ${{ secrets.BASE64_DEV_APP_PRIVATE_KEY }}
BASE64_MAC_DEV_APP_CERT: ${{ secrets.BASE64_MAC_DEV_APP_CERT }}
BASE64_MAC_DEV_APP_PRIVATE_KEY: ${{ secrets.BASE64_MAC_DEV_APP_PRIVATE_KEY }}
BASE64_MAC_DEV_INSTALL_CERT: ${{ secrets.BASE64_MAC_DEV_INSTALL_CERT }}
BASE64_MAC_DEV_INSTALL_PRIVATE_KEY: ${{ secrets.BASE64_MAC_DEV_INSTALL_PRIVATE_KEY }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: 'gradle'
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: browser-actions/setup-chrome@v2
with:
chrome-version: '146'
install-chromedriver: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
- name: Install Node modules
run: npm install
- name: Run tests
run: |
./gradlew --no-daemon :desktop:jacocoTestReport
env:
HEADLESS: true
SENTRY_DSN: 'dummy'
SENTRY_WEBVIEW_DSN: 'dummy'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: ${{ !cancelled() }}
with:
require_tests: true
report_paths: '**/build/test-results/test/*.xml'
- name: Upload Failed Screenshots
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: failed-screenshots
path: '**/build/failed-screenshots/'
build-desktop-win:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
cache: 'gradle'
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: browser-actions/setup-chrome@v2
with:
chrome-version: '146'
install-chromedriver: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
- name: Install Node modules
run: npm install
- name: Run tests
run: |
./gradlew --no-daemon :desktop:jacocoTestReport
env:
HEADLESS: true
SENTRY_DSN: 'dummy'
SENTRY_WEBVIEW_DSN: 'dummy'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: ${{ !cancelled() }}
with:
require_tests: true
report_paths: '**/build/test-results/test/*.xml'
- name: Upload Failed Screenshots
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: failed-screenshots
path: '**/build/failed-screenshots/'