Skip to content

Commit

Permalink
add .github/workflows/nightly-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed May 23, 2024
1 parent f948d83 commit e18c9ff
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "pre-master" ]
branches: [ "master" ]

jobs:

Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

# Nightly Test Against Open Source Projects Using Xgo
name: Nightly Test

on:
schedule:
- cron: "23 0 * * *"
pull_request:
branches: [ "master" ]

# 'gin-gonic/gin' ok
# 'fatedier/frp' cannot pass even with go? need to verify
jobs:

test-with-xgo:
runs-on: ubuntu-latest
timeout-minutes: 360
steps:
- uses: actions/checkout@v4
with:
path: xgo

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Install Xgo Locally
run: |
cd xgo
go install ./cmd/xgo
xgo revision
- uses: actions/checkout@v4
with:
repository: pocketbase/pocketbase
path: pocketbase/pocketbase

- name: Test pocketbase/pocketbase
continue-on-error: true
run: cd pocketbase/pocketbase && xgo test -v ./...

- uses: actions/checkout@v4
with:
repository: kubernetes/kubernetes
path: kubernetes/kubernetes

- name: Test kubernetes/kubernetes
continue-on-error: true
run: cd kubernetes/kubernetes && xgo test -v ./...

- uses: actions/checkout@v4
with:
repository: gohugoio/hugo
path: gohugoio/hugo

- name: Test gohugoio/hugo
continue-on-error: true
run: cd gohugoio/hugo && xgo test -v ./...
4 changes: 2 additions & 2 deletions cmd/xgo/runtime_gen/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.37"
const REVISION = "ced286540d12f84a48095050174f2a37b376bdcc+1"
const NUMBER = 231
const REVISION = "f948d832e81c7e70b5cc0fc282f582d7a1069e9f+1"
const NUMBER = 232

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down
4 changes: 2 additions & 2 deletions cmd/xgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import "fmt"

const VERSION = "1.0.37"
const REVISION = "ced286540d12f84a48095050174f2a37b376bdcc+1"
const NUMBER = 231
const REVISION = "f948d832e81c7e70b5cc0fc282f582d7a1069e9f+1"
const NUMBER = 232

func getRevision() string {
revSuffix := ""
Expand Down
4 changes: 2 additions & 2 deletions runtime/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.37"
const REVISION = "ced286540d12f84a48095050174f2a37b376bdcc+1"
const NUMBER = 231
const REVISION = "f948d832e81c7e70b5cc0fc282f582d7a1069e9f+1"
const NUMBER = 232

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down

0 comments on commit e18c9ff

Please sign in to comment.