-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (44 loc) · 1.19 KB
/
ci.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
name: CI
# Triggered on all pull requests and dev pushes.
on:
pull_request:
push:
branches:
- dev
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: "Checkout SDK"
uses: actions/checkout@v3
- name: "Prettier Check"
uses: creyD/prettier_action@v4.0
with:
dry: True
prettier_options: --config .prettierrc --check **/*.ts
- name: "Setup Node.js"
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: "Install dependencies"
run: yarn install
- name: "Build"
run: yarn build
- name: "Test"
run: yarn test
- name: "Checkout Erdstall Core"
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIV_KEY }}
repository: "perun-network/erdstall-ext"
path: "erdstall"
- name: "Set up Go 1.x"
uses: actions/setup-go@v3
with:
go-version: ^1.17
- name: "Build walkthrough operator"
working-directory: "erdstall"
run: go build -o wo ./cmd/walkthrough/main.go
- name: "End-2-End Test"
run: ERDSTALL_EXE=erdstall/wo yarn test:e2e