fix and add new test, SetCode cheat code (#3) #38
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: Golang CI | |
defaults: | |
run: | |
shell: bash -ieo pipefail {0} | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
go-ci: | |
runs-on: ubuntu-latest | |
env: | |
GO111MODULE: on | |
steps: | |
- name: "Install foundry" | |
run: | | |
curl -L https://foundry.paradigm.xyz | bash; | |
source ~/.bashrc; | |
foundryup | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: '-exclude-dir=contracts ./...' | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
# - name: Install dependencies | |
# run: go get . | |
- name: Test with the Go CLI | |
run: go test $(go list ./... | grep -v /contracts) |