Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
swap-v2-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
swap-v2-sdk
Commits
f208f6b1
Unverified
Commit
f208f6b1
authored
Mar 05, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update CI
parent
f8c11f5c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
1 deletion
+74
-1
lint.yml
.github/workflows/lint.yml
+30
-0
unit-tests.yml
.github/workflows/unit-tests.yml
+41
-0
README.md
README.md
+3
-1
No files found.
.github/workflows/lint.yml
0 → 100644
View file @
f208f6b1
name
:
Lint
on
:
push
:
pull_request
:
jobs
:
run-linters
:
name
:
Run linters
runs-on
:
ubuntu-latest
steps
:
-
name
:
Check out Git repository
uses
:
actions/checkout@v2
-
name
:
Set up node
uses
:
actions/setup-node@v2
with
:
node-version
:
12
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
-
name
:
Run linters
uses
:
wearerequired/lint-action@a8497ddb33fb1205941fd40452ca9fff07e0770d
with
:
github_token
:
${{ secrets.github_token }}
prettier
:
true
auto_fix
:
true
prettier_extensions
:
'
css,html,js,json,jsx,md,sass,scss,ts,tsx,vue,yaml,yml'
.github/workflows/
CI
.yml
→
.github/workflows/
unit-tests
.yml
View file @
f208f6b1
name
:
CI
name
:
Unit Tests
env
:
CI
:
true
on
:
on
:
pull_request
:
branches
:
-
v2
push
:
push
:
branches
:
pull_request
:
-
v2
jobs
:
jobs
:
test
:
tests
:
name
:
Unit tests
strategy
:
strategy
:
matrix
:
matrix
:
node
:
[
'
10.x'
,
'
12.x'
]
node
:
[
'
10.x'
,
'
12.x'
]
os
:
[
ubuntu-latest
,
macOS-latest
]
runs-on
:
${{ matrix.os }}
runs-on
:
ubuntu-latest
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Checkout
-
uses
:
actions/setup-node@v1
uses
:
actions/checkout@v2
-
name
:
Setup node
uses
:
actions/setup-node@v2
with
:
with
:
node-version
:
${{ matrix.node }}
node-version
:
${{ matrix.node }}
-
run
:
npm install -g yarn
-
name
:
Get cache directory
id
:
yarn-cache
-
id
:
yarn-cache
run
:
echo "::set-output name=dir::$(yarn cache dir)"
run
:
echo "::set-output name=dir::$(yarn cache dir)"
-
uses
:
actions/cache@v1
-
name
:
Cache yarn dependencies
uses
:
actions/cache@v1
with
:
with
:
path
:
${{ steps.yarn-cache.outputs.dir }}
path
:
${{ steps.yarn-cache.outputs.dir }}
key
:
${{ matrix.os }}-
yarn-${{ hashFiles('**/yarn.lock') }}
key
:
yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys
:
|
restore-keys
:
|
${{ matrix.os }}-
yarn-
yarn-
-
run
:
yarn
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
-
run
:
yarn lint
-
name
:
Run tests
-
run
:
yarn build
run
:
yarn test
-
run
:
yarn test
README.md
View file @
f208f6b1
# Uniswap V2 SDK
# Uniswap V2 SDK
[

](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3A%22Unit+Tests%22)
[

](https://github.com/Uniswap/uniswap-v2-sdk/actions?query=workflow%3ALint)
[

](https://github.com/prettier/prettier)
[

](https://github.com/prettier/prettier)
[

](https://github.com/Uniswap/uniswap-v2-sdk)
[

](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[

](https://www.npmjs.com/package/@uniswap/v2-sdk/v/latest)
[

](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)
[

](https://bundlephobia.com/result?p=@uniswap/v2-sdk@latest)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment