Skip to content

ci: DO-2192 Integrated Gosec #4156

ci: DO-2192 Integrated Gosec

ci: DO-2192 Integrated Gosec #4156

name: Lava Protocol Tests
on: [pull_request]
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-go@v3
with:
go-version: 1.20.5
# Setup Paths
- name: home
run: pwd && ls -l
- name: ls usr
run: ls -l /home/runner/work/lava/lava
- name: cp lava
run: cp -r ~/work/lava/lava ~/go/lava
- name: export PATH
run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
# - name: export
# run: export PATH=$PATH:/go/lava
- name: export GOPATH
run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- name: export LAVA
run: export LAVA=/home/runner/work/lava/lava
- name: go env
run: go env
- name: pwd
run: pwd
- name: tree
run: tree
- name: ls -l
run: ls -l
######################################################
### Run protocol unitests
######################################################
- name: Run Lava Protocol Tests
run: go test ./protocol/...
- name: Run Cache Tests
run: go test ./ecosystem/cache/...