Merge pull request #5 from gnosisguild/fix-gas-fields #14
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: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node: ['18'] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Cache Yarn dependencies | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache- | |
- run: yarn --no-progress --non-interactive --frozen-lockfile | |
- run: yarn lint | |
- run: yarn format | |
if: runner.os == 'Linux' | |
- run: yarn build | |
- run: yarn test | |
env: | |
E2E_RPC: ${{ secrets.E2E_RPC }} | |
- run: yarn typecheck | |
- run: yarn no-git-changes | |
if: runner.os == 'Linux' | |
# @TODO: skipping for now beacuse of stability issues | |
# test-examples: | |
# strategy: | |
# # When set to true, GitHub cancels all in-progress jobs if any matrix job fails. | |
# fail-fast: false | |
# matrix: | |
# node: ['18.x'] | |
# os: [ubuntu-latest, windows-latest] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v1 | |
# - uses: actions/setup-node@v1 | |
# with: | |
# node-version: ${{ matrix.node }} | |
# - name: Cache YARN dependencies | |
# uses: actions/cache@v2 | |
# with: | |
# path: | | |
# node_modules | |
# */*/node_modules | |
# key: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-${{ hashFiles('**/yarn.lock') }} | |
# restore-keys: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache- | |
# - run: yarn --no-progress --non-interactive --frozen-lockfile | |
# - run: yarn build | |
# - run: yarn check-examples | |
# - run: yarn no-git-changes | |
# if: runner.os == 'Linux' |