Skip to content

Commit

Permalink
Fix ci target branch (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshka committed Dec 1, 2022
1 parent 26a470e commit 44f9358
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 63 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
push:
branches:
- main
pull_request:

jobs:
test:
name: Forge tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
test:
name: Forge tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv --gas-report
id: test
- name: Run Forge tests
run: |
forge test -vvv --gas-report
id: test

- name: Code coverage
run: |
forge coverage --report lcov
- name: Code coverage
run: |
forge coverage --report lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
branches:
- master
- main
jobs:
publish:
runs-on: ubuntu-latest
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
name: Slither Analysis

on:
push:
branches: [ master ]
pull_request:
push:
branches: [main]
pull_request:

jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly

- name: Install dependencies
run: forge install
- name: Install dependencies
run: forge install

- name: Run Slither
env:
TERM: xterm-color
uses: crytic/slither-action@main
continue-on-error: true
id: slither
with:
slither-config: "slither.config.json"
solc-version: 0.8.16
sarif: results.sarif
- name: Run Slither
env:
TERM: xterm-color
uses: crytic/slither-action@main
continue-on-error: true
id: slither
with:
slither-config: "slither.config.json"
solc-version: 0.8.16
sarif: results.sarif

# Below call currently raises Error: Advanced Security must be enabled for this repository to use code scanning.
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository
# - name: Upload SARIF file for margin
# uses: github/codeql-action/upload-sarif@v2
# id: upload-1
# with:
# sarif_file: ${{ steps.slither.outputs.sarif }}
# Below call currently raises Error: Advanced Security must be enabled for this repository to use code scanning.
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository
# - name: Upload SARIF file for margin
# uses: github/codeql-action/upload-sarif@v2
# id: upload-1
# with:
# sarif_file: ${{ steps.slither.outputs.sarif }}

0 comments on commit 44f9358

Please sign in to comment.