Skip to content

Commit

Permalink
add a basic ci runner (#126)
Browse files Browse the repository at this point in the history
* add a basic ci runner

* validate renovate

* must install, npx doesnt work

* move to separate job as its slower

* build firebase in ci

---------

Co-authored-by: Aaron <[email protected]>
  • Loading branch information
aaronmgdr and aaronmgdr authored Dec 5, 2023
1 parent c304046 commit adaaa80
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions apps/firebase/src/celo-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit adaaa80

@vercel
Copy link

@vercel vercel bot commented on adaaa80 Dec 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.