Skip to content

Commit

Permalink
remove build step
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo2204 committed Apr 6, 2021
1 parent 8be0435 commit c6b3830
Showing 1 changed file with 22 additions and 29 deletions.
51 changes: 22 additions & 29 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,8 @@
name: Khan
'on': push
jobs:
build:
runs-on: ubuntu-latest
steps:
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- uses: actions/checkout@v2
# Cache go build cache, used to speedup go test
- name: Go Build Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

# Cache go mod cache, used to speedup builds
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.2
- name: Setup ci
run: make setup-ci
tests:
runs-on: ubuntu-latest
needs:
- build
services:
postgres:
image: postgres:9.5
Expand All @@ -49,6 +20,10 @@ jobs:
ports:
- '50505:6379'
steps:
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0
with:
Expand All @@ -62,6 +37,24 @@ jobs:
node port: 9300
discovery type: single-node
- uses: actions/checkout@v2
- name: Go Build Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

# Cache go mod cache, used to speedup builds
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.2
- name: Setup ci
run: make setup-ci
- name: Test
run: make schema-update assets migrate-test run-test
performance:
Expand Down

0 comments on commit c6b3830

Please sign in to comment.