-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from schemahero/github-actions
GitHub actions
- Loading branch information
Showing
128 changed files
with
324 additions
and
1,384 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: "Alpha release" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: "1.12.14" | ||
- name: setup goenv | ||
run: | | ||
echo "::set-env name=GOPATH::$(go env GOPATH)" | ||
echo "::add-path::$(go env GOPATH)/bin" | ||
shell: bash | ||
- uses: actions/checkout@master | ||
- name: setup kubebuilder | ||
run: | | ||
echo "::add-path::/usr/local/kubebuilder/bin" | ||
- run: make kubebuilder all | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: schemahero | ||
path: bin/schemahero | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: manager | ||
path: bin/manager | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: kubectl-schemahero | ||
path: bin/kubectl-schemahero | ||
|
||
## We list each here so that they all show up in the output of github checks | ||
test-postgres: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Download schemahero binary | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: schemahero | ||
path: bin/ | ||
- run: chmod +x bin/schemahero | ||
- run: make -C integration/tests/postgres/column-set-default run | ||
- run: make -C integration/tests/postgres/column-unset-default run | ||
- run: make -C integration/tests/postgres/create-table run | ||
- run: make -C integration/tests/postgres/foreign-key-create run | ||
- run: make -C integration/tests/postgres/foreign-key-action run | ||
- run: make -C integration/tests/postgres/foreign-key-drop run | ||
- run: make -C integration/tests/postgres/foreign-key-alter run | ||
- run: make -C integration/tests/postgres/not-null run | ||
- run: make -C integration/tests/postgres/index-create run | ||
- run: make -C integration/tests/postgres/primary-key-add run | ||
- run: make -C integration/tests/postgres/primary-key-drop run | ||
|
||
## We list each here so that they all show up in the output of github checks | ||
test-mysql: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Download schemahero binary | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: schemahero | ||
path: bin/ | ||
- run: chmod +x bin/schemahero | ||
- run: make -C integration/tests/mysql/column-set-default run | ||
- run: make -C integration/tests/mysql/column-unset-default run | ||
- run: make -C integration/tests/mysql/create-table run | ||
- run: make -C integration/tests/mysql/foreign-key-create run | ||
- run: make -C integration/tests/mysql/foreign-key-action run | ||
- run: make -C integration/tests/mysql/foreign-key-drop run | ||
- run: make -C integration/tests/mysql/foreign-key-alter run | ||
- run: make -C integration/tests/mysql/not-null run | ||
- run: make -C integration/tests/mysql/index-create run | ||
- run: make -C integration/tests/mysql/primary-key-add run | ||
- run: make -C integration/tests/mysql/primary-key-drop run | ||
|
||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: "1.12.14" | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name: "Tagged release" | ||
on: | ||
push: | ||
tags: ["*"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: "1.12.14" | ||
- name: setup goenv | ||
run: | | ||
echo "::set-env name=GOPATH::$(go env GOPATH)" | ||
echo "::add-path::$(go env GOPATH)/bin" | ||
shell: bash | ||
- uses: actions/checkout@master | ||
- name: setup kubebuilder | ||
run: | | ||
echo "::add-path::/usr/local/kubebuilder/bin" | ||
- run: make kubebuilder all | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: schemahero | ||
path: bin/schemahero | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: manager | ||
path: bin/manager | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: kubectl-schemahero | ||
path: bin/kubectl-schemahero | ||
|
||
## We list each here so that they all show up in the output of github checks | ||
test-postgres: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Download schemahero binary | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: schemahero | ||
path: bin/ | ||
- run: chmod +x bin/schemahero | ||
- run: make -C integration/tests/postgres/column-set-default run | ||
- run: make -C integration/tests/postgres/column-unset-default run | ||
- run: make -C integration/tests/postgres/create-table run | ||
- run: make -C integration/tests/postgres/foreign-key-create run | ||
- run: make -C integration/tests/postgres/foreign-key-action run | ||
- run: make -C integration/tests/postgres/foreign-key-drop run | ||
- run: make -C integration/tests/postgres/foreign-key-alter run | ||
- run: make -C integration/tests/postgres/not-null run | ||
- run: make -C integration/tests/postgres/index-create run | ||
- run: make -C integration/tests/postgres/primary-key-add run | ||
- run: make -C integration/tests/postgres/primary-key-drop run | ||
|
||
## We list each here so that they all show up in the output of github checks | ||
test-mysql: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Download schemahero binary | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: schemahero | ||
path: bin/ | ||
- run: chmod +x bin/schemahero | ||
- run: make -C integration/tests/mysql/column-set-default run | ||
- run: make -C integration/tests/mysql/column-unset-default run | ||
- run: make -C integration/tests/mysql/create-table run | ||
- run: make -C integration/tests/mysql/foreign-key-create run | ||
- run: make -C integration/tests/mysql/foreign-key-action run | ||
- run: make -C integration/tests/mysql/foreign-key-drop run | ||
- run: make -C integration/tests/mysql/foreign-key-alter run | ||
- run: make -C integration/tests/mysql/not-null run | ||
- run: make -C integration/tests/mysql/index-create run | ||
- run: make -C integration/tests/mysql/primary-key-add run | ||
- run: make -C integration/tests/mysql/primary-key-drop run | ||
|
||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
- uses: actions/setup-go@v1 | ||
with: | ||
go-version: "1.12.14" | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ dist/ | |
.DS_Store | ||
|
||
vendor | ||
integration/**/out.sql |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include ../common.mk | ||
|
||
TEST_NAME := mysql-column-set-default | ||
SPEC_FILE := /specs/users.yaml | ||
SPEC_FILE := ./specs/users.yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table `users` modify column `account_type` varchar (10) not null default "trial" | ||
alter table `users` modify column `num_seats` int (11) not null default "5" |
2 changes: 0 additions & 2 deletions
2
integration/tests/mysql/column-set-default/expect/kustomization.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.