Skip to content

Commit

Permalink
Integration check (#68)
Browse files Browse the repository at this point in the history
* fix build and add test action

* rename integration to test

* restore .vscode/extensions.json

* restore .vscode/extensions.json content

* run check on pull request synchronize
  • Loading branch information
dmosites authored Sep 20, 2023
1 parent 013a053 commit affb044
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .env

This file was deleted.

2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_INFURA_API_KEY=
VITE_WALLETCONNECT_ID=
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
ignorePatterns: ["dist", ".eslintrc.cjs", "index.js"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests
on:
pull_request:
types: [synchronize]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test using Node.js
uses: actions/setup-node@v3
with:
node-version: 16.15.1
- run: yarn
- run: yarn build
- name: Tests ✅
if: ${{ success() }}
run: |
curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{
"context": "tests",
"state": "success",
"description": "Tests passed",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
- name: Tests 🚨
if: ${{ failure() }}
run: |
curl --request POST --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' --header 'content-type: application/json' --data '{
"context": "tests",
"state": "failure",
"description": "Tests failed",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
.env
*.local

# Editor directories and files
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
}
2 changes: 1 addition & 1 deletion src/features/common/hooks/useMultipleTokenInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { multicall } from "wagmi/actions";
type TokenInfoQueryKey = [
chainId: number,
tokenAddress: `0x${string}`,
"tokenInfo",
tokenInfo: "tokenInfo",
];

const fetchTokenInfo = async ({
Expand Down

0 comments on commit affb044

Please sign in to comment.