-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (75 loc) · 2.53 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Example
on:
push:
branches: [main] # add with comma for more branches to monitor
pull_request:
branches: [main]
env:
DATABASE_URL: ${{secrets.DATABASE_URL}}
COOKIESTORE: ${{secrets.COOKIESTORE}}
# FIREBASE_ADMIN_PASSPHRASE: ${{secrets.FIREBASE_ADMIN_PASSPHRASE}}
jobs:
example:
name: Create Ubuntu OS
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.22.3
- name: Check Go Version
run: go version
- name: Checkout Repo # to pull out current repo code
uses: actions/[email protected]
- name: Install dependencies
run: |
#go mod init calc # for go mod. If we use go build, it will do the same for the 3 lines.
go mod tidy
go get github.com/franela/goblin
go get golang.org/x/tools/cmd/godoc@latest
ls
- name: Decrypt Firebase JSON
run: |
chmod +x decrypt_secret.sh
./decrypt_secret.sh
env:
FIREBASE_ADMIN_PASSPHRASE: ${{secrets.FIREBASE_ADMIN_PASSPHRASE}}
- name: Go Test
run: |
go test
- if: ${{success()}}
name: Success Message (Discord)
uses: discord-actions/message@v2
with:
webhookUrl: ${{secrets.DISCORD_WEBHOOK}}
message: SUCCESSFULLLL in branch ${{github.ref}} by ${{github.actor}}
- if: ${{success()}}
name: Success Message (Telegram)
uses: akeylimepie/[email protected]
with:
token: ${{secrets.TELEGRAM_TOKEN}}
chat_id: ${{secrets.TELEGRAM_CHAT_ID}}
text: SUCCESSFULLLL in branch ${{github.ref}} by ${{github.actor}}
- if: ${{failure()}}
name: Failure Message (Discord)
uses: discord-actions/message@v2
with:
webhookUrl: ${{secrets.DISCORD_WEBHOOK}}
message: FAILUREEEE in branch ${{github.ref}} by ${{github.actor}}
- if: ${{failure()}}
name: Failure Message (Telegram)
uses: akeylimepie/[email protected]
with:
token: ${{secrets.TELEGRAM_TOKEN}}
chat_id: ${{secrets.TELEGRAM_CHAT_ID}}
text: FAILUREEEE in branch ${{github.ref}} by ${{github.actor}}
#- name: Setup Python
#uses: actions/[email protected]
#with:
#python-version: 3.8
#- name: Show Python Version
#run: |
#ls
#python --version
#ls
#pip3 install pandas