cmdext: revert support env://VARIABLE
for runtimevar
datasource (#2078)
#5
Workflow file for this run
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
# # # # # # # # # # # # # # # # | |
# CODE GENERATED - DO NOT EDIT | |
# # # # # # # # # # # # # # # # | |
name: CI - Revisions - Community Edition | |
on: | |
pull_request: | |
paths: | |
- 'cmd/atlas/internal/migrate/ent/**' | |
push: | |
branches: | |
- master | |
paths: | |
- 'cmd/atlas/internal/migrate/ent/**' | |
jobs: | |
revisions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: cmd/atlas/go.mod | |
- name: Checkout origin/master | |
run: git checkout origin/master | |
- name: Create revisions from master | |
run: go run main.go migrate apply --dir file://internal/cmdapi/testdata/sqlite --url sqlite://db?_fk=1 | |
working-directory: cmd/atlas | |
- name: Checkout previous HEAD | |
run: git checkout - | |
- name: Migrate revisions table to HEAD | |
run: go run main.go migrate apply --dir file://internal/cmdapi/testdata/sqlite --url sqlite://db?_fk=1 | |
working-directory: cmd/atlas |