feat(space): export proposal id when executing #647
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" | |
env: | |
FOUNDRY_PROFILE: "ci" | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
cache: "yarn" | |
node-version: "lts/*" | |
- name: "Install the Node.js dependencies" | |
run: "yarn install --immutable" | |
- name: "Lint the code" | |
run: "yarn lint" | |
test: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
cache: "yarn" | |
node-version: "lts/*" | |
- name: "Install the Node.js dependencies" | |
run: "yarn install --immutable" | |
- name: "Show the Foundry config" | |
run: "forge config" | |
- name: "Create env file" | |
run: "touch .env && echo GOERLI_RPC_URL=${{ secrets.GOERLI_RPC_URL }} >> .env" | |
- name: "Run the tests" | |
run: "yarn test" | |
coverage: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Install Node.js" | |
uses: "actions/setup-node@v3" | |
with: | |
cache: "yarn" | |
node-version: "lts/*" | |
- name: "Install the Node.js dependencies" | |
run: "yarn install --immutable" | |
- name: "Run coverage" | |
run: "yarn coverage" | |
- name: "Upload coverage to Codecov" | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |