doc: added README for land-sale package #7710
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: CI | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "./.github/setup" | |
- name: Linting | |
run: yarn lint:ci | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "./.github/setup" | |
- name: Formatting | |
run: yarn format:ci | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "./.github/setup" | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Slither | |
run: pip3 install slither-analyzer | |
- name: Running Slither | |
run: yarn analyze:ci | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "./.github/setup" | |
- name: Running tests | |
run: yarn test:ci | |
env: | |
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "./.github/setup" | |
- name: Running coverage | |
run: yarn coverage:ci | |
- name: Coverage created? | |
id: check_coverage | |
run: | | |
if [ -s $GITHUB_WORKSPACE/coverage/lcov.info ] ; then | |
echo "check_result=true" >> $GITHUB_OUTPUT | |
echo "lcov.info FILE exists and has a size greater than zero" | |
else | |
echo "check_result=false" >> $GITHUB_OUTPUT | |
echo "lcov.info does not exists or has size zero" | |
fi | |
- name: Report coverage | |
if: steps.check_coverage.outputs.check_result == 'true' | |
uses: romeovs/[email protected] | |
with: | |
lcov-file: ./coverage/lcov.info | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enforce coverage | |
if: steps.check_coverage.outputs.check_result == 'true' | |
uses: VeryGoodOpenSource/very_good_coverage@v2 | |
with: | |
path: ./coverage/lcov.info | |
min_coverage: 80 | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: "./.github/setup" | |
- name: Deploy contracts | |
run: yarn deploy:ci | |
env: | |
ETH_NODE_URI_GOERLI: ${{ secrets.ETH_NODE_URI_GOERLI }} | |
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} |