Initial: Go app with tests + CI workflow
All checks were successful
CI / test (push) Successful in 1m45s
All checks were successful
CI / test (push) Successful in 1m45s
This commit is contained in:
27
.gitea/workflows/ci.yaml
Normal file
27
.gitea/workflows/ci.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v ./...
|
||||
|
||||
- name: Build
|
||||
run: go build -o ci-test .
|
||||
|
||||
- name: Run binary
|
||||
run: ./ci-test
|
||||
Reference in New Issue
Block a user