ci: try removing git ownership patch #873
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: test | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
jobs: | |
run-tests: | |
name: Test contracts | |
runs-on: ubuntu-latest | |
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow | |
permissions: | |
id-token: write | |
packages: read | |
contents: read | |
security-events: write | |
timeout-minutes: 15 | |
container: | |
image: ghcr.io/nayms/contracts-builder:latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: "yarn" | |
- name: Install solc | |
run: svm install 0.7.6 && svm install 0.8.20 && svm use 0.8.20 | |
- name: Install Forge dependencies | |
run: forge install | |
- name: Install Node dependencies | |
run: yarn | |
- name: Drop-in Test Wallet | |
run: echo "test test test test test test test test test test test junk" > ./nayms_mnemonic.txt && echo "test test test test test test test test test test test junk" > ./nayms_mnemonic_mainnet.txt | |
- name: Build solidity contracts | |
run: make build | |
env: | |
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }} | |
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }} | |
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }} | |
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }} | |
BASE_GOERLI_RPC_URL: ${{ secrets.BASE_GOERLI_RPC_URL }} | |
- name: Tests - local | |
run: make test | |
env: | |
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }} | |
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }} | |
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }} | |
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }} | |
BASE_GOERLI_RPC_URL: ${{ secrets.BASE_GOERLI_RPC_URL }} | |
- name: Coverage report | |
env: | |
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }} | |
run: make coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: "./lcov-filtered.info" | |
- name: Slither Static Analyser | |
id: slither | |
env: | |
SOLC_VERSION: 0.8.20 | |
run: make slither | |
- name: Upload Slither SARIF file | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: results.sarif |