[go: nahoru, domu]

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

Build: enable slither CI validation #22

Merged
merged 4 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
chore(ci): split actions
  • Loading branch information
tamtamchik committed Mar 6, 2024
commit ebb3303db925d121733c0dc6db260d25c8870970
2 changes: 0 additions & 2 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Code Analysis

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
name: Tests

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
test:
name: Solidity tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Run Hardhat Solidity tests
run: pnpm test

coverage:
name: Solidity coverage
runs-on: ubuntu-latest
Expand Down
38 changes: 1 addition & 37 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Tests

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
on: [push]

jobs:
test:
Expand All @@ -28,35 +24,3 @@ jobs:

- name: Run Hardhat Solidity tests
run: pnpm test

coverage:
name: Solidity coverage
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Run Solidity coverage
run: pnpm test:coverage

- name: Produce the coverage report
uses: insightsengineering/coverage-action@v2
with:
path: ./coverage/cobertura-coverage.xml
publish: true
diff: true
diff-branch: master
diff-storage: _core_coverage_reports
coverage-summary-title: "Code Coverage Summary"
Loading