Use namespace in DB #1075
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: shellcheck | |
run: | | |
sudo apt-get -y install tree | |
dev/lint-shellcheck | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: --timeout=5m --config .golangci.yaml | |
- run: go install github.com/segmentio/golines | |
- name: golines | |
uses: nickcharlton/diff-check@main | |
with: | |
command: dev/lint-golines | |
contracts: | |
name: Lint (Contracts) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: 'nightly-2044faec64f99a21f0e5f0094458a973612d0712' | |
- run: forge --version | |
- name: Run Forge fmt | |
# only format code, we do not want to format LIB | |
run: forge fmt contracts/src --check |