Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update workflow #2

Merged
merged 22 commits into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/golang.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Run Gosec
name: Golang CI
defaults:
run:
shell: bash -ieo pipefail {0}
on:
push:
branches:
Expand All @@ -13,20 +16,21 @@ jobs:
GO111MODULE: on
steps:
- name: "Install foundry"
shell: bash
run: |
curl -L https://foundry.paradigm.xyz | bash;
source $HOME/.bashrc;
echo $PATH;
ls /home/runner/.config/.foundry/bin;
- name: "Install anvil"
shell: bash
run: |
chmod +x $HOME/.config/.foundry/bin;
source ~/.bashrc;
foundryup
- name: Checkout Source
uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: '-exclude-dir=contracts ./...'
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)
Loading