doc/md: add ci instructions for SQLite (#2970)

This commit is contained in:
Jannik Clausen
2022-09-28 11:08:21 +02:00
committed by GitHub
parent b286a4b0ce
commit 5330f87759

View File

@@ -120,6 +120,7 @@ values={[
{label: 'MySQL', value: 'mysql'},
{label: 'MariaDB', value: 'maria'},
{label: 'PostgreSQL', value: 'postgres'},
{label: 'SQLite', value: 'sqlite'},
]}>
<TabItem value="mysql">
@@ -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>