File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
paths :
8
- - ' server/**'
9
- - ' internal/**'
10
- - ' go.mod'
11
- - ' go.sum'
12
- - ' .github/workflows/deploy-server.yml'
8
+ - " server/**"
9
+ - " internal/**"
10
+ - " go.mod"
11
+ - " go.sum"
12
+ - " .github/workflows/deploy-server.yml"
13
13
14
14
jobs :
15
15
test :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- uses : actions/checkout@v4
19
-
19
+
20
20
- name : Setup Go
21
21
uses : actions/setup-go@v5
22
22
with :
23
- go-version : ' 1.24 '
23
+ go-version : " 1.25 "
24
24
cache : true
25
-
25
+
26
26
- name : Run Go tests
27
27
run : |
28
28
cd server
29
29
go test -v ./...
30
-
30
+
31
31
deploy :
32
32
needs : test
33
33
runs-on : ubuntu-latest
34
34
steps :
35
35
- uses : actions/checkout@v4
36
-
36
+
37
37
- name : Setup Fly CLI
38
38
uses : superfly/flyctl-actions/setup-flyctl@master
39
-
39
+
40
40
- name : Deploy to Fly.io
41
41
env :
42
42
FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
45
45
--config server/fly.toml \
46
46
--dockerfile server/Dockerfile \
47
47
--build-arg BUILDKIT_INLINE_CACHE=1 \
48
- --build-arg GIT_COMMIT=${{ github.sha }}
48
+ --build-arg GIT_COMMIT=${{ github.sha }}
You can’t perform that action at this time.
0 commit comments