-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (57 loc) · 1.72 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: ci
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
workflow_dispatch: # Allows to trigger workflow manually or via API
env:
# Build enterprise edition
MB_EDITION: ee
# Cancel previous PR builds.
concurrency:
# Cancel all workflow runs except latest within a concurrency group. This is achieved by defining a concurrency group for the PR.
# Non-PR builds have singleton concurrency groups.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
cancel-in-progress: true
jobs:
build-success:
# This job is executed only if any dependency fails to mark entire workflow execution as failure.
# Otherwise it is skipped which is treated as success of the entire workflow execution.
if: ${{ !success() }}
runs-on: ubuntu-latest
needs: [release]
steps:
- run: false
release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Extract version info
uses: ./.github/actions/extract-version-info
id: extract-version-info
- name: Initialize dependencies
uses: ./.github/actions/init-dependencies
id: init-dependencies
with:
java-version: ${{ matrix.runners.java_version }}
java-architecture: ${{ matrix.runners.architecture }}
clojure-version: ${{ env.CLOJURE_VERSION }}
- name: Initialize Metabase
run: |
cd metabase |
yarn build-static-viz |
cd ..
- name: Build
run: |
make build
- name: Test
run: |
make test