Giter Club home page Giter Club logo

atlas-action's People

Contributors

dorav avatar giautm avatar hilakashai avatar masseelch avatar noamcattan avatar ronenlu avatar rotemtam avatar yonidavidson avatar zeevmoney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atlas-action's Issues

Error when using ariga/atlas-action/migrate/apply@v1 with PostgreSQL

When using the Apply GitHub Action:

  migrate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: ariga/setup-atlas@v0
      - name: Deploy Atlas Migrations
        uses: ariga/atlas-action/migrate/apply@v1
        with:
          url: ${{ secrets.DATABASE_URL }}
          dir: db/schema.hcl

Where ${{ secrets.DATABASE_URL }} = postgres://db_user:[email protected]/name_db

Which seems to be a valid Postgres URL

I get the following error:

Run ariga/atlas-action/migrate/apply@v1
Using version v1
Downloading atlas-action binary: https://release.ariga.io/atlas-action/atlas-action-v1
Error: Error: unsupported driver ""
Error: The process exited with code 1

To see if my DATABASE_URL secret was the problem I tried to run manually the command atlas schema inspect
in the following way:

  test-atlas-connection:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v3
      
      - name: Set up Atlas CLI
        run: curl -sSf https://atlasgo.sh | sh


      - name: Inspect Database Schema
        run: atlas schema inspect --url ${{ secrets.DATABASE_URL }}
        env:
          ATLAS_NO_COLOR: "true"

And it worked successfully without error.

Thank you in advance, and let me know if more information is required.

Error: slug must be lowercase alphanumeric and may contain /.-_

Hello,

I was attempting to migrate to the new CI/CD workflows and noticed a bug in ariga/atlas-action/migrate/lint@v1.

The error was provided: Error: slug must be lowercase alphanumeric and may contain /.-_

From what I can gather, my dir-name unfortunately has uppercase characters, and is causing the linting action to fail.

How to fail the GHA workflow if backwards incompatible changes detected?

When the action runs I can see it correctly detects backwards incompatible changes.

However, I wasn't able to work out how to cause a non-zero exit code, which could then be used to make the workflow go into a failed state.

If I were running the CLI I would configure an atlas.hcl with:

lint {
    incompatible {
        error = true
    }
}

But there doesn't seem to be a way to pass in an --config parameter as an input to this action.

Support install-only

I'd like to use my re-usable scripts for generating diffs in github actions w/ atlas CLI. I'd like to use the atlas-action to set up atlas for me. However, this does not seem to be supported right now, as:

  1. the binary is not exposed for later steps
  2. it's not possible to run the atlas-action without executing any command

Do you think it's possible to support that, or with a separate action like ariga/setup-atlas?

Allow destructive change

Hello!

I'd like to drop a table on purpose but I get the error DS102 which is expected.
How can I instruct Atlas on letting this go because it's on purpose?

Thank you for your time!

Allow skipping of commercial warning.

I understand that you all are a commercial enterprise but it would be nice to allow users to indicate that they would not to see the ariga cloud warning if a token is not provided. Some organizations may have a longer path to commercial/contractual engagement and the warning could actually serve as an adoption barrier in the context of a POC or evaluation.

Fix atlas version

Is it possible to fix atlas CLI version to be used during action run?
It seems that currently latest atlas is used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.