-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 959 Bytes
/
makefile.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
name: go-kalshi CI
on:
push:
branches: [ main ]
# Commented out to prevennt malicious PRs from running this file
#pull_request:
# branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check out repo under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
# Setup Go
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.18.0'
# Install all the dependencies
- name: Install dependencies
run: |
go version
go get -u golang.org/x/lint/golint
# Build the program
- name: Run build
run: make
# Create .env file from secrets
- name: Create .env file
run: |
echo -ne "KALSHI_USERNAME=\"${{ secrets.KALSHI_USERNAME }}\"\n" > .env
echo -ne "KALSHI_PASSWORD=\"${{ secrets.KALSHI_PASSWORD }}\"\n" >> .env
# Run the program
- name: Run program
run: ./kalshi-tool list-markets