-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 979 Bytes
/
example.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
name: Example of katana-ci-action usage
on:
push:
branches:
- main
jobs:
katana-ci-example:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Startup Katana CI instance
id: katanaci
uses: ArkProjectNFTs/katana-ci-action@v6
with:
api-url: ${{ secrets.KATANA_CI_URL }}
api-key: ${{ secrets.KATANA_CI_KEY }}
cmd: 'start'
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Run cargo test
uses: actions-rs/cargo@v1
env:
STARKNET_RPC: ${{ steps.katanaci.outputs.katana-rpc }}
with:
command: run
args: --example e2e
- name: Terminate Katana CI instance
uses: ArkProjectNFTs/katana-ci-action@v6
with:
api-url: ${{ secrets.KATANA_CI_URL }}
api-key: ${{ secrets.KATANA_CI_KEY }}
cmd: 'stop'
name: ${{ steps.katanaci.outputs.katana-name }}