Skip to content

Commit 2c300e4

Browse files
committed
ci: stabilize Engram workflow
1 parent 2d38d00 commit 2c300e4

1 file changed

Lines changed: 39 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,49 @@
1-
name: CI
1+
name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
7+
- master
68
pull_request:
7-
branches: [main]
89

910
jobs:
10-
test:
11+
build-and-test:
1112
runs-on: ubuntu-latest
13+
env:
14+
CI: true
15+
ANTHROPIC_API_KEY: test-anthropic-key
16+
HELIUS_API_KEY: test-helius-key
17+
SOLANA_RPC_URL: https://example.com
18+
WALLET_ADDRESS: 11111111111111111111111111111111
19+
WALLET_PRIVATE_KEY: test-private-key
20+
TWITTER_BEARER_TOKEN: test-twitter-bearer
21+
NEWSAPI_KEY: test-news-key
22+
CHROMA_URL: http://localhost:8000
23+
DEFILLAMA_API_URL: https://api.llama.fi
24+
COINGECKO_API_URL: https://api.coingecko.com/api/v3
25+
SNAPSHOT_GRAPHQL_URL: https://hub.snapshot.org/graphql
26+
REALMS_API_URL: https://api.realms.today/api
27+
LOG_LEVEL: error
1228
steps:
13-
- uses: actions/checkout@v4
14-
- uses: oven-sh/setup-bun@v2
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Bun
33+
uses: oven-sh/setup-bun@v2
34+
with:
35+
bun-version: 1.2.15
36+
37+
- name: Setup Node.js
38+
uses: actions/setup-node@v4
1539
with:
16-
bun-version: latest
17-
- run: bun install --frozen-lockfile
18-
- run: bun run lint
19-
- run: bun run test
40+
node-version: 20
41+
42+
- name: Install dependencies
43+
run: bun install
44+
45+
- name: Build
46+
run: bun run build
2047

48+
- name: Test
49+
run: bun run test

0 commit comments

Comments
 (0)