-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.34 KB
/
continuousIntgration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: continuous integration
on:
- push
jobs:
lint_frontend:
runs-on: ubuntu-latest
env:
HEDERA_ACCOUNT_ID: ${{ secrets.HEDERA_ACCOUNT_ID }}
HEDERA_PRIVATE_KEY: ${{ secrets.HEDERA_PRIVATE_KEY }}
HEDERA_ENVIRONMENT: ${{ vars.HEDERA_ENVIRONMENT }}
PUBLIC_HASHCONNECT_PROJECT_ID: ${{ vars.PUBLIC_HASHCONNECT_PROJECT_ID }}
steps:
# setup
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- run: pnpm install
# script
- run: pnpm -C frontend lint:eslint
- run: pnpm -C frontend lint:prettier
- run: pnpm -C frontend lint:svelte
build_frontend:
runs-on: ubuntu-latest
env:
HEDERA_ACCOUNT_ID: ${{ secrets.HEDERA_ACCOUNT_ID }}
HEDERA_PRIVATE_KEY: ${{ secrets.HEDERA_PRIVATE_KEY }}
HEDERA_ENVIRONMENT: ${{ vars.HEDERA_ENVIRONMENT }}
PUBLIC_HASHCONNECT_PROJECT_ID: ${{ vars.PUBLIC_HASHCONNECT_PROJECT_ID }}
steps:
# setup
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: "pnpm"
- run: pnpm install
# script
- run: pnpm -C frontend build