Skip to content

Commit

Permalink
doc/md: add ci instructions for SQLite (#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
masseelch committed Sep 28, 2022
1 parent b286a4b commit 5330f87
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions doc/md/ci.mdx
Expand Up @@ -120,6 +120,7 @@ values={[
{label: 'MySQL', value: 'mysql'},
{label: 'MariaDB', value: 'maria'},
{label: 'PostgreSQL', value: 'postgres'},
{label: 'SQLite', value: 'sqlite'},
]}>
<TabItem value="mysql">

Expand Down Expand Up @@ -251,6 +252,35 @@ jobs:
dev-url: postgres://postgres:pass@localhost:5432/test?sslmode=disable
```

</TabItem>
<TabItem value="sqlite">

```yaml
name: Atlas CI
on:
# Run whenever code is changed in the master branch,
# change this to your root branch.
push:
branches:
- master
# Run on PRs where something changed under the `ent/migrate/migrations/` directory.
pull_request:
paths:
- 'ent/migrate/migrations/*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.1
with:
fetch-depth: 0 # Mandatory unless "latest" is set below.
- uses: ariga/atlas-action@v0
with:
dir: ent/migrate/migrations
dir-format: golang-migrate # Or: atlas, goose, dbmate
dev-url: sqlite://./dev.db?_fk=1
```

</TabItem>
</Tabs>

Expand Down

0 comments on commit 5330f87

Please sign in to comment.