From cc1abf2416042a8ca25721821d9b9bff26a10ef5 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat <ariya@metabase.com> Date: Fri, 4 Feb 2022 07:35:32 -0800 Subject: [PATCH] Move Liquibase migration tests to GitHub Actions (#20218) --- .circleci/config.yml | 23 ----------------------- .github/workflows/migrations.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/migrations.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 0a32d05aff3..b27d0152c63 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -607,25 +607,6 @@ jobs: paths: - metabase/metabase - check-migrations: - executor: - builder - steps: - - attach-workspace - - create-checksum-file: - filename: .MIGRATIONS-CHECKSUM - find-args: resources/migrations -type f -name '*.yaml' - - create-checksum-file: - filename: .MIGRATIONS-LINTER-CHECKSUMS - find-args: bin/lint-migrations-file -type f -name '*.clj' -or -name 'deps.edn' - - run-on-change: - checksum: '{{ checksum ".MIGRATIONS-CHECKSUM" }}-{{ checksum ".MIGRATIONS-LINTER-CHECKSUMS" }}' - steps: - - run: - name: Verify Liquibase Migrations - command: ./bin/lint-migrations-file.sh - no_output_timeout: 15m - ######################################################################################################################## # BACKEND # ######################################################################################################################## @@ -1054,10 +1035,6 @@ workflows: jobs: - checkout - - check-migrations: - requires: - - checkout - - be-deps: requires: - checkout diff --git a/.github/workflows/migrations.yml b/.github/workflows/migrations.yml new file mode 100644 index 00000000000..109a242e8cd --- /dev/null +++ b/.github/workflows/migrations.yml @@ -0,0 +1,20 @@ +name: Migrations + +on: + push: + branches: + - 'master' + - 'release-**' + pull_request: + +jobs: + + check-migrations: + runs-on: ubuntu-20.04 + timeout-minutes: 15 + steps: + - uses: actions/checkout@v2 + - name: Prepare back-end environment + uses: ./.github/actions/prepare-backend + - name: Verify Liquibase Migrations + run: ./bin/lint-migrations-file.sh -- GitLab