Skip to content

ci: adjust directory layout #46

ci: adjust directory layout

ci: adjust directory layout #46

Workflow file for this run

name: Go Test
on:
pull_request:
push:
tags:
- '**'
branches:
- '**'
defaults:
run:
working-directory: ./gcosmos
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: gcosmos
# The _cosmosvendor/sync_sdk.bash script (via make deps)
# tries to use an existing SDK checkout to speed up the clone.
# Relying on actions/checkout should make that part of the cache,
# so CI ought to run faster.
- uses: actions/checkout@v4
with:
repository: cosmos/cosmos-sdk
path: cosmos-sdk
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: gcosmos/go.mod # Use whatever version is in the header of go.mod.
- name: Vendor and patch SDK
run: make deps
env:
GIT_AUTHOR_NAME: github actions
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: github actions
GIT_COMMITTER_EMAIL: [email protected]
- name: Test
run: go test -timeout=5m ./...