-
Notifications
You must be signed in to change notification settings - Fork 278
36 lines (36 loc) · 1.13 KB
/
ci-revisions_oss.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# # # # # # # # # # # # # # # #
# 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/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
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 . 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 . migrate apply --dir file://internal/cmdapi/testdata/sqlite --url sqlite://db?_fk=1
working-directory: cmd/atlas