8 Commits

Author SHA1 Message Date
606d420a4b 更新 .gitea/workflows/test_php.yml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
Gitea Actions / run-php (push) Successful in 1m23s
2025-12-08 08:59:28 +08:00
0512c5262d 添加 .gitea/workflows/test_php.yml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s
Gitea Actions / run-php (push) Failing after 1m17s
Signed-off-by: a1012112796 <1012112796@qq.com>
2025-12-08 08:56:05 +08:00
f1c92355e2 更新 README.md
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 23s
Signed-off-by: a1012112796 <1012112796@qq.com>
2025-09-29 15:21:31 +08:00
d10ced6769 go test pkg rename
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
2025-08-14 15:20:56 +08:00
0097744d69 add test go package in subdir
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 23s
2025-08-14 15:06:15 +08:00
68111c48f5 Merge pull request 'test pull request action' (#1) from a1012112796/test-pull-request into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Reviewed-on: #1
2024-12-10 17:50:45 +08:00
3002d29cc9 test pull request action
Gitea Actions Demo / Explore-Gitea-Actions (pull_request) Successful in 5s
Signed-off-by: a1012112796 <1012112796@qq.com>
2024-12-10 17:33:33 +08:00
3ecdc27162 更新 README.md
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m2s
Signed-off-by: a1012112796 <1012112796@qq.com>
2023-05-24 16:28:42 +08:00
7 changed files with 77 additions and 3 deletions
+15 -2
View File
@@ -1,6 +1,6 @@
name: Gitea Actions Demo name: Gitea Actions Demo
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀 run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
on: [push] on: [push, pull_request]
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -15,4 +15,17 @@ jobs:
- name: List files in the repository - name: List files in the repository
run: | run: |
ls ${{ github.workspace }} ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."
- name: test group
run: |
echo "::group::test group"
echo "in group msg for: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
echo "in group msg for: bbbbbbbbbbbbbbbbbbbbbbb"
echo "in group msg for: ccccccccccccccccccccccccccccc"
echo "::endgroup::"
echo "ssssssssssssssssssssssssssssssssssssss"
echo "::group::test group 2"
echo "in group msg for: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
echo "in group msg for: bbbbbbbbbbbbbbbbbbbbbbb"
echo "in group msg for: ccccccccccccccccccccccccccccc"
echo "::endgroup::"
+20
View File
@@ -0,0 +1,20 @@
name: Gitea Actions
on: [push]
jobs:
run-php:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2' # adapte si besoin (7.4, 8.0, etc.)
- run: php -r "echo 'Hello, world.';"
- run: php -r "phpinfo();"
- run: php -r "print('Hello, world.');"
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
+5 -1
View File
@@ -1,3 +1,7 @@
# test_gitea_act # test_gitea_act
test gitea action test gitea action
test haha
test 2
+11
View File
@@ -0,0 +1,11 @@
module www.zhao1012112796.top/testg/test_gitea_act
go 1.25.0
require github.com/stretchr/testify v1.10.0
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
+10
View File
@@ -0,0 +1,10 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+5
View File
@@ -0,0 +1,5 @@
package haha
func Haha(x, y int) int {
return x + y + 1
}
+11
View File
@@ -0,0 +1,11 @@
package haha
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHaHa(t *testing.T) {
assert.Equal(t, Haha(1, 2), 4)
}