Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add .github/workflows/nightly-test.yml #141

Merged
merged 1 commit into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add .github/workflows/nightly-test.yml
  • Loading branch information
xhd2015 committed May 23, 2024
commit f8957598179bc320d321b851d1f1bd39e67c7223
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
65 changes: 65 additions & 0 deletions .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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 * * *"
push:
branches: [ "trigger-nightly-test" ]

# 'gin-gonic/gin' ok
# 'fatedier/frp' cannot pass even with go? need to verify
#
# NOTE: use serially job to avoid 'Job Cancelled' which could
# possible be due to memory exhaust
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: gohugoio/hugo
path: gohugoio/hugo

- name: Test gohugoio/hugo
continue-on-error: true
run: cd gohugoio/hugo && 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 ./...

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
Loading