Skip to content

#75: Upgrade to Metabase v.0.48.0 #232

#75: Upgrade to Metabase v.0.48.0

#75: Upgrade to Metabase v.0.48.0 #232

Workflow file for this run

name: CI Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
fail-fast: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
env:
METABASE_TAG: v0.48.0
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
path: metabase-driver
- name: Checkout the Metabase repository at tag ${{ env.METABASE_TAG }}
uses: actions/checkout@v4
with:
fetch-depth: 1
repository: metabase/metabase
path: metabase
ref: ${{ env.METABASE_TAG }}
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: '1.11.1.1262'
- name: Cache Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('metabase-driver/deps.edn', 'metabase/**/deps.edn') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache clj-kondo
uses: actions/cache@v3
with:
path: metabase-driver/.clj-kondo/.cache
key: clj-kondo-cache-${{ hashFiles('metabase-driver/deps.edn') }}
restore-keys: |
clj-kondo-cache
- name: Log versions
run: |
java --version
echo Clojure: $(clojure -M --eval "(clojure-version)")
clojure --version
cd metabase-driver && clojure -M:clj-kondo --version
- name: Build driver
run: "$GITHUB_WORKSPACE/metabase-driver/scripts/build.sh"
- name: Upload jar
uses: actions/upload-artifact@v4
with:
name: exasol.metabase-driver.jar
path: metabase-driver/target/exasol.metabase-driver.jar
if-no-files-found: error
- name: Run unit tests
run: "$GITHUB_WORKSPACE/metabase-driver/scripts/run-unit-tests.sh"
- name: Run linter
run: |
cd "$GITHUB_WORKSPACE/metabase-driver"
mkdir -p .clj-kondo/.cache
clojure -M:clj-kondo --lint src test --debug