diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..6b3dbf010 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,51 @@ +name: Faucet CI +run-name: 'Faucet CI: ${{ github.head_ref || github.ref_name }}' + +on: + push: + branches: + - master + pull_request: + branches: + - master + +concurrency: + group: faucet-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash --login -eo pipefail {0} + +jobs: + run-checks: + name: Run Checks + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Setup Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'yarn' + - name: Install Dependencies + run: yarn + - name: Run Lint Globally + run: yarn lint + - name: Build Firebase + run: yarn --cwd=apps/firebase run build + validate-renovate-config: + name: Validate Renovate Config + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Setup Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + - name: Validate Renovate Config + run: | + npm install --global renovate + renovate-config-validator diff --git a/apps/firebase/src/celo-adapter.ts b/apps/firebase/src/celo-adapter.ts index fcef9e8af..70a02ec5c 100644 --- a/apps/firebase/src/celo-adapter.ts +++ b/apps/firebase/src/celo-adapter.ts @@ -23,6 +23,7 @@ export class CeloAdapter { // To add more logging: // Use the debug of the contractkit. Run it with DEBUG=* (or the options) + // @ts-ignore this.kit = newKitFromWeb3(new Web3(nodeUrl)) console.info(`New kit from url: ${nodeUrl}`) this.privateKey = ensureLeading0x(pk)