-
Notifications
You must be signed in to change notification settings - Fork 53
44 lines (34 loc) · 1.24 KB
/
ci.yaml
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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
- name: Update Submodules
run: git submodule update --init --recursive
- run: curl -L https://install.dojoengine.org | bash
- run: /home/runner/.config/.dojo/bin/dojoup -v v0.4.4
- run: |
cd examples/dojo-starter
/home/runner/.config/.dojo/bin/sozo build
/home/runner/.config/.dojo/bin/sozo test
- name: Install Protobuf Compiler
run: sudo apt-get install -y protobuf-compiler
- name: Link dependencies
run: bun link
- name: Install dependencies
run: bun install
- name: Run Prettier
run: bun x prettier --check .
- name: Build dependencies
run: bun run build && bun run build-examples
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}