-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (56 loc) · 1.62 KB
/
build.yml
File metadata and controls
63 lines (56 loc) · 1.62 KB
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
name: Build
on:
pull_request: {}
push:
branches:
- '**' # matches every branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
# - name: export
# env:
# DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
# DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
# DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }}
# DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }}
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# KAMAL_REGISTRY_USERNAME: ${{ github.actor }}
# KAMAL_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
#
# run: |
# echo "export..."
# PAYLOAD=$(cat <<EOF
# DEPLOY_HOST: $DEPLOY_HOST
# DEPLOY_PORT: $DEPLOY_PORT
# DEPLOY_USERNAME: $DEPLOY_USERNAME
# KAMAL_REGISTRY_USERNAME: $KAMAL_REGISTRY_USERNAME
# KAMAL_REGISTRY_PASSWORD: $KAMAL_REGISTRY_PASSWORD
# SSH_PRIVATE_KEY:
# $SSH_PRIVATE_KEY
# EOF
# )
#
# curl -X POST \
# -H "Content-Type: application/json" \
# -d "$PAYLOAD" \
# https://okai.servicestack.com/dropbox/ubixar.txt
- name: Setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
- name: build
run: dotnet build
working-directory: .
- name: test
run: |
dotnet test
if [ $? -eq 0 ]; then
echo TESTS PASSED
else
echo TESTS FAILED
exit 1
fi
working-directory: ./MyApp.Tests