Skip to content

Commit

Permalink
Bump Version with Major Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Oct 15, 2022
1 parent 330ccd3 commit 8d0fa78
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 34 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: PHPUnit
on:
push:
branches:
- master
tags:
- "*.*.*"
pull_request:
branches:
- master
schedule:
- cron: "0 8 * * 1"

jobs:
Build:
runs-on: 'ubuntu-latest'
container: 'byjg/php:${{ matrix.php-version }}-cli'
strategy:
matrix:
php-version:
- "8.1"
- "8.0"
- "7.4"
- "7.3"
- "7.2"

steps:
- uses: actions/checkout@v2
- run: composer install
- run: |
set -e
export MIGRATE_CONNECTION=sqlite:///tmp/teste.db
export MIGRATE_PATH=example/sqlite/
scripts/migrate reset --yes -vvv
scripts/migrate version
scripts/migrate update -vvv --up-to=1
scripts/migrate version
scripts/migrate up -vvv
scripts/migrate version
scripts/migrate down -vvv --up-to=0
scripts/migrate version
scripts/migrate update -vvv --up-to=1
scripts/migrate version
Documentation:
runs-on: 'ubuntu-latest'
needs: Build
if: github.ref == 'refs/heads/master'
env:
DOC_GITHUB_TOKEN: '${{ secrets.DOC_TOKEN }}'
steps:
- uses: actions/checkout@v2
- run: curl https://opensource.byjg.com/add-doc.sh | bash /dev/stdin php migration-cli
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Database Migrations (Cli)

[![Build Status](https://github.com/byjg/migration-cli/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/migration-cli/actions/workflows/phpunit.yml)
[![Opensource ByJG](https://img.shields.io/badge/opensource-byjg-success.svg)](http://opensource.byjg.com)
[![GitHub source](https://img.shields.io/badge/Github-source-informational?logo=github)](https://github.com/byjg/migration-cli/)
[![GitHub license](https://img.shields.io/github/license/byjg/migration-cli.svg)](https://opensource.byjg.com/opensource/licensing.html)
[![GitHub release](https://img.shields.io/github/release/byjg/migration-cli.svg)](https://github.com/byjg/migration-cli/releases/)
[![Build Status](https://travis-ci.com/byjg/migration-cli.svg?branch=master)](https://travis-ci.com/byjg/migration-cli)

This is a simple library written in PHP for database version control. Currently supports Sqlite, MySql, Sql Server and Postgres.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"prefer-stable": true,
"require": {
"php": ">=7.2",
"byjg/migration": "4.2.*",
"byjg/migration": "dev-bump",
"symfony/console": "^5.3"
},
"autoload": {
Expand Down

0 comments on commit 8d0fa78

Please sign in to comment.