Skip to content

Commit

Permalink
ci: test and build only
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-abrioux committed Jun 3, 2024
1 parent 938224a commit eb41e79
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 47 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true

jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- run: corepack enable
- name: Install deps
run: pnpm i
- name: Build
run: pnpm build
- name: Test
run: pnpm test
37 changes: 0 additions & 37 deletions .github/workflows/deploy.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,3 @@ Small utility to receive slack alerts when a given EVM wallet balance is low (un
pnpm install
SPREADSHEET_ID=[your spreadhsheet id] ETHERSCAN_API_KEY_[NETWORK]=[your Etherscan API key] node index.js
```

### Push new version

Any commit to `main` will be automatically deployed.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@
"typescript": "^5.4.3"
},
"scripts": {
"build:cp-package-json": "cp package.json build/",
"build": "rimraf build && mkdir build && pnpm build:cp-package-json && tsc",
"gcp-build": "",
"build": "rimraf build && mkdir build && cp package.json build/ && tsc",
"watch": "tsc --watch",
"test": "jest",
"prettier": "prettier --write .",
"start": "ts-node src/run.ts",
"deploy": "pnpm build && pnpm deploy:function",
"deploy:function": "gcloud functions deploy sync-wallet-balance --entry-point main --source build --runtime=nodejs20"
"start": "ts-node src/run.ts"
},
"engines": {
"node": "^20.0.0",
Expand Down

0 comments on commit eb41e79

Please sign in to comment.