This commit is contained in:
parent
75f96ddc8c
commit
c432f8e321
2 changed files with 38 additions and 0 deletions
36
.forgejo/workflows/push-prod-test.yaml
Normal file
36
.forgejo/workflows/push-prod-test.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
env:
|
||||||
|
EXEC: arimelody-web
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '^1.25.1'
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test -v ./model
|
||||||
|
|
||||||
|
- name: Build binary
|
||||||
|
run: make build
|
||||||
|
|
||||||
|
- name: Bundle tarball
|
||||||
|
run: make bundle
|
||||||
|
|
||||||
|
- name: Set up SSH keys
|
||||||
|
uses: webfactory/ssh-agent@v0.9.0
|
||||||
|
with:
|
||||||
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Copy to production server
|
||||||
|
run: echo "we'll just pretend it works lol"
|
||||||
|
|
@ -15,6 +15,8 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '^1.25.1'
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v ./model
|
run: go test -v ./model
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue