Skip to content

Commit 5e1dccc

Browse files
authored
fix build workflow for master branch (#115)
* fix build workflow for master branch * Update build.yml * Update build.yml * Update build.yml * fix wrong dir
1 parent 5c7e4bb commit 5e1dccc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,20 @@ jobs:
8282
uses: actions/setup-go@v2
8383
with:
8484
go-version: ^${{ matrix.go }}
85+
- name: Check out code into the Go module directory
86+
uses: actions/checkout@v2
87+
- run: go install ./cmd/rel
8588
- name: Check out code into the Go module directory
8689
uses: actions/checkout@v2
8790
with:
8891
repository: Fs02/go-todo-backend
89-
- run: go get github.com/Fs02/rel/cmd/rel@${{ github.event.pull_request.head.sha }}
90-
if: github.event_name == 'pull_request'
91-
- run: go get github.com/Fs02/rel/cmd/rel@$GITHUB_REF
92-
if: github.event_name == 'push'
93-
- run: go mod tidy
94-
- run: rel -v
95-
- run: rel migrate
96-
- run: rel rollback
92+
path: project
93+
- name: Test CLI
94+
working-directory: project
95+
run: |
96+
rel -v
97+
rel migrate
98+
rel rollback
9799
98100
coverage:
99101
name: Coverage

0 commit comments

Comments
 (0)