diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..8a40beb77 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: ['master'] + pull_request: + types: [opened, synchronize] + +jobs: + build: + name: Lint + timeout-minutes: 15 + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' + + - name: Install dependencies + run: yarn + + - name: Lint + run: yarn lint diff --git a/apps/guardian-ui/package.json b/apps/guardian-ui/package.json index 78b540436..2b61785a5 100644 --- a/apps/guardian-ui/package.json +++ b/apps/guardian-ui/package.json @@ -8,7 +8,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "lint": "eslint \"src/**/*.ts*\"", + "lint": "eslint \"src/**/*.ts*\" --max-warnings 0", "clean": "rm -rf build" }, "dependencies": { diff --git a/apps/guardian-ui/src/components/ConnectGuardians.tsx b/apps/guardian-ui/src/components/ConnectGuardians.tsx index 1c061e307..a7c2081c1 100644 --- a/apps/guardian-ui/src/components/ConnectGuardians.tsx +++ b/apps/guardian-ui/src/components/ConnectGuardians.tsx @@ -153,7 +153,7 @@ export const ConnectGuardians: React.FC = ({ next }) => { rows = [...rows, row]; } return rows; - }, [numPeers, peers, role, t]); + }, [numPeers, ourCurrentId, peers, t]); return (