Commit 384c3cad authored by Moody Salem's avatar Moody Salem

Add integration test, change ipfs deploy into daily release workflow

parent c94e8ff6
name: Daily Release
# every morning
on: on:
push: schedule:
branches: - cron: '0 12 * * *'
- v2
name: Deploy to IPFS
jobs: jobs:
build-and-deploy: create-release:
name: Build and Deploy name: Create Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Bump version and push tag
id: bump_version
uses: mathieudutour/github-tag-action@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: .*
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: '12' node-version: '12'
- run: npm install -g yarn - name: Install yarn
- name: Get yarn cache directory path run: npm install -g yarn
id: yarn-cache-dir-path - name: Install dependencies
run: echo "::set-output name=dir::$(yarn cache dir)" run: yarn
- uses: actions/cache@v1 - name: Build the IPFS bundle
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) run: yarn ipfs-build
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
- run: yarn ipfs-build
- name: Upload to IPFS - name: Upload to IPFS
id: upload id: upload
uses: aquiladev/ipfs-action@master uses: aquiladev/ipfs-action@master
...@@ -37,12 +36,19 @@ jobs: ...@@ -37,12 +36,19 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ steps.bump_version.outputs.new_tag }}
release_name: Release ${{ github.ref }} release_name: Release ${{ steps.bump_version.outputs.new_tag }}
draft: true draft: true
prerelease: ${{ !startsWith(github.ref, 'refs/tags/v') }}
body: | body: |
This release can be accessed at the following IPFS URLs: Release built from commit `${{ github.sha }}`
The IPFS hash of the bundle is `${{ steps.upload.outputs.hash }}`
The following IPFS Gateways can be used to access the release:
- https://cloudflare-ipfs.com/ipfs/${{ steps.upload.outputs.hash }}/ - https://cloudflare-ipfs.com/ipfs/${{ steps.upload.outputs.hash }}/
- https://ipfs.infura.io/ipfs/${{ steps.upload.outputs.hash }}/ - https://ipfs.infura.io/ipfs/${{ steps.upload.outputs.hash }}/
- https://ipfs.io/ipfs/${{ steps.upload.outputs.hash }}/ - https://ipfs.io/ipfs/${{ steps.upload.outputs.hash }}/
\ No newline at end of file
Includes the following changes:
${{ steps.bump_version.outputs.changelog }}
\ No newline at end of file
describe('Add Liquidity', () => {
beforeEach(() =>
cy.visit('/add/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85-0xc778417E063141139Fce010982780140Aa0cD5Ab')
)
it('loads the two correct tokens', () => {
cy.get('#add-liquidity-input-token0 .token-symbol-container').should('contain', 'MKR')
cy.get('#add-liquidity-input-token1 .token-symbol-container').should('contain', 'ETH')
})
})
{ {
"name": "uniswap", "name": "@uniswap/interface",
"description": "Uniswap Interface", "description": "Uniswap Interface",
"version": "0.1.0",
"homepage": "https://uniswap.exchange", "homepage": "https://uniswap.exchange",
"private": true, "private": true,
"dependencies": { "dependencies": {
......
...@@ -701,7 +701,7 @@ export default function AddLiquidity({ match: { params } }: RouteComponentProps< ...@@ -701,7 +701,7 @@ export default function AddLiquidity({ match: { params } }: RouteComponentProps<
onTokenSelection={address => onTokenSelection(Field.INPUT, address)} onTokenSelection={address => onTokenSelection(Field.INPUT, address)}
pair={pair} pair={pair}
label="Input" label="Input"
id="add-liquidity-input" id="add-liquidity-input-token0"
/> />
<ColumnCenter> <ColumnCenter>
<Plus size="16" color={theme.text2} /> <Plus size="16" color={theme.text2} />
...@@ -717,7 +717,7 @@ export default function AddLiquidity({ match: { params } }: RouteComponentProps< ...@@ -717,7 +717,7 @@ export default function AddLiquidity({ match: { params } }: RouteComponentProps<
token={tokens[Field.OUTPUT]} token={tokens[Field.OUTPUT]}
onTokenSelection={address => onTokenSelection(Field.OUTPUT, address)} onTokenSelection={address => onTokenSelection(Field.OUTPUT, address)}
pair={pair} pair={pair}
id="add-liquidity-output" id="add-liquidity-input-token1"
/> />
{tokens[Field.OUTPUT] && tokens[Field.INPUT] && ( {tokens[Field.OUTPUT] && tokens[Field.INPUT] && (
<> <>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment