Skip to content

feat: update workflow #33

feat: update workflow

feat: update workflow #33

Workflow file for this run

name: Golang CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
go-ci:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: "Install foundry"
shell: bash
run: |
curl -L https://foundry.paradigm.xyz | bash;
export PATH=$PATH:$HOME/.config/.foundry/bin;
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: export PATH=$PATH:$HOME/.config/.foundry/bin && go test $(go list ./... | grep -v /contracts)