Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
606d420a4b
|
|||
|
0512c5262d
|
|||
|
f1c92355e2
|
|||
|
d10ced6769
|
|||
|
0097744d69
|
|||
| 68111c48f5 | |||
|
3002d29cc9
|
|||
| 3ecdc27162 |
@@ -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::"
|
||||||
|
|||||||
@@ -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 }}."
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
# test_gitea_act
|
# test_gitea_act
|
||||||
|
|
||||||
test gitea action
|
test gitea action
|
||||||
|
|
||||||
|
test haha
|
||||||
|
|
||||||
|
test 2
|
||||||
|
|||||||
+11
@@ -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
@@ -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=
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package haha
|
||||||
|
|
||||||
|
func Haha(x, y int) int {
|
||||||
|
return x + y + 1
|
||||||
|
}
|
||||||
@@ -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)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user