CrateDB: Subtract features from PostgreSQL adapter to make CrateDB work #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Loki Visual Regression Testing | |
on: [pull_request] | |
jobs: | |
files-changed: | |
name: Check which files changed | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 3 | |
outputs: | |
frontend_ci: ${{ steps.changes.outputs.frontend_ci }} | |
frontend_sources: ${{ steps.changes.outputs.frontend_sources }} | |
frontend_loki_ci: ${{ steps.changes.outputs.frontend_loki_ci }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test which files changed | |
uses: dorny/paths-filter@v3.0.0 | |
id: changes | |
with: | |
token: ${{ github.token }} | |
filters: .github/file-paths.yaml | |
visual-test: | |
needs: files-changed | |
if: needs.files-changed.outputs.frontend_ci == 'true' || needs.files-changed.outputs.frontend_sources == 'true' || needs.files-changed.outputs.frontend_loki_ci == 'true' | |
runs-on: ubuntu-latest | |
services: | |
docker: | |
image: docker:19.03.12 | |
options: --privileged | |
ports: | |
- 2376:2376 | |
env: | |
DOCKER_TLS_CERTDIR: /certs | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /tmp/docker-certs:/certs/client | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Prepare frontend environment | |
uses: ./.github/actions/prepare-frontend | |
- name: Prepare back-end environment | |
uses: ./.github/actions/prepare-backend | |
with: | |
m2-cache-key: "cljs" | |
- name: Compile CLJS | |
run: yarn build-pure:cljs | |
- name: Build Storybook | |
# We won't be able to use Storybook play's `userEvent` with production build | |
# see https://github.com/storybookjs/storybook/issues/19758 | |
run: NODE_ENV=development yarn build-storybook | |
- name: Serve Storybook | |
run: yarn http-server storybook-static -p 6006 & | |
shell: bash | |
- name: Wait for Storybook to become available | |
run: | | |
echo "Waiting for Storybook to be served..." | |
while ! curl --silent --fail http://localhost:6006; do | |
sleep 5 | |
echo "Retrying..." | |
done | |
echo "Storybook is being served!" | |
- name: Run Loki Visual Tests | |
run: | | |
yarn test-visual:loki | |
- name: Generate Visual Report on Failure | |
if: failure() | |
run: yarn test-visual:loki-report | |
- name: Upload Artifact | |
id: artifact-upload-step | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: loki-report | |
include-hidden-files: true | |
path: .loki/ | |
if-no-files-found: ignore |