-
Notifications
You must be signed in to change notification settings - Fork 45
49 lines (39 loc) · 1.12 KB
/
contracts-ci.yml
File metadata and controls
49 lines (39 loc) · 1.12 KB
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: Contract CI/CD Pipeline
on:
push:
branches: [main, develop]
paths:
- 'contract/**'
pull_request:
branches: [ main, develop ]
paths:
- 'contract/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install Stellar CLI
run: |
curl -s https://get.stellar.org | bash
- name: Check formatting
run: cargo fmt --all -- --check
working-directory: ./contract/contract
- name: Run contract tests
run: cargo test
working-directory: ./contract/contract
- name: Build contracts
run: cargo build --release
working-directory: ./contract/contract
- name: Deploy to Stellar testnet
run: echo "Add Stellar deployment script here"
working-directory: ./contract/contract
env:
STELLAR_SECRET: ${{ secrets.STELLAR_SECRET }}