Added phone_number field to the users table to store user's phone num… #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Atlas CI Public | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- 'dirs/ecommerce/migrations/*' | |
jobs: | |
sync: | |
permissions: | |
contents: read | |
id-token: write | |
needs: lint | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ariga/atlas-sync-action@v0 | |
with: | |
dir: 'dirs/ecommerce/migrations' | |
driver: mysql | |
cloud-public: true | |
lint: | |
permissions: | |
contents: read | |
id-token: write | |
pull-requests: write | |
services: | |
mysql: | |
image: mysql:8.0.29 | |
env: | |
MYSQL_ROOT_PASSWORD: pass | |
MYSQL_DATABASE: dev | |
ports: | |
- "3306:3306" | |
options: >- | |
--health-cmd "mysqladmin ping -ppass" | |
--health-interval 10s | |
--health-start-period 10s | |
--health-timeout 5s | |
--health-retries 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: ariga/atlas-action@v0 | |
with: | |
dir: 'dirs/ecommerce/migrations' | |
dev-url: mysql://root:pass@localhost:3306/dev | |
cloud-public: true |