diff --git a/.circleci/config.yml b/.circleci/config.yml index 0a32d05aff3ca907b75526b1c9f634f2af57db69..b27d0152c6319e751d4713dc3ad46ad681890cad 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 0000000000000000000000000000000000000000..109a242e8cd242f22a3532d52e308cc9d730ac53 --- /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