chore: add / update workflows to do folder filtering (#153)
* Reflect Polygon -> Eth Mainnet change in main readme * chore: add / update workflows to do folder filtering and run change specific tests. * chore: run workflows based on both the path and the target branch of pr. * chore: add graphclient generation command to ui workflow Co-authored-by: Camila Sosa Morales <camisosa@fleek.xyz> * style: fix indentation in the ui workflow yml file --------- Co-authored-by: Janison Sivarajah <jsonsivar@gmail.com> Co-authored-by: Camila Sosa Morales <camisosa@fleek.xyz>
This commit is contained in:
parent
e74e5595da
commit
7387b68571
|
|
@ -1,71 +1,46 @@
|
||||||
name: Tests
|
name: Contract
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
|
paths:
|
||||||
jobs:
|
- 'contracts/**'
|
||||||
test-contracts:
|
|
||||||
runs-on: ubuntu-latest
|
jobs:
|
||||||
|
test-contracts:
|
||||||
defaults:
|
runs-on: ubuntu-latest
|
||||||
run:
|
|
||||||
working-directory: contracts
|
defaults:
|
||||||
|
run:
|
||||||
strategy:
|
working-directory: contracts
|
||||||
matrix:
|
|
||||||
node-version: [18.x]
|
strategy:
|
||||||
|
matrix:
|
||||||
steps:
|
node-version: [18.x]
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
steps:
|
||||||
uses: actions/setup-node@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
node-version: ${{ matrix.node-version }}
|
uses: actions/setup-node@v3
|
||||||
submodules: recursive
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
- name: Install Foundry
|
submodules: recursive
|
||||||
uses: foundry-rs/foundry-toolchain@v1
|
|
||||||
with:
|
- name: Install Foundry
|
||||||
version: nightly
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
|
with:
|
||||||
- name: Install Dependencies
|
version: nightly
|
||||||
run: yarn --ignore-scripts
|
|
||||||
|
- name: Install Dependencies
|
||||||
- name: Audit
|
run: yarn --ignore-scripts
|
||||||
run: yarn audit --groups dependencies
|
|
||||||
|
- name: Audit
|
||||||
- name: Compile
|
run: yarn audit --groups dependencies
|
||||||
run: yarn compile
|
|
||||||
|
- name: Compile
|
||||||
- name: Run Test
|
run: yarn compile
|
||||||
run: yarn test
|
|
||||||
|
- name: Run Test
|
||||||
test-ui:
|
run: yarn test
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ui
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [18.x]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: yarn --ignore-scripts
|
|
||||||
|
|
||||||
- name: Audit
|
|
||||||
run: yarn audit --groups dependencies
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: yarn build
|
|
||||||
|
|
@ -6,7 +6,6 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test-subgraph:
|
test-subgraph:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,38 @@
|
||||||
|
name: UI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
paths:
|
||||||
|
- 'ui/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-ui:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ui
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [18.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: yarn --ignore-scripts
|
||||||
|
- name: Create .graphclient folder
|
||||||
|
run: yarn graphclient build
|
||||||
|
- name: Audit
|
||||||
|
run: yarn audit --groups dependencies
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: yarn build
|
||||||
Loading…
Reference in New Issue