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 e08cdbd
Show file tree
Hide file tree
Showing 5 changed files with 49 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
42 changes: 42 additions & 0 deletions .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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

name: Nightly Test Against Open Source Projects Using Xgo

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

jobs:

test:
strategy:
matrix:
os: [ ubuntu-latest]
go: [ '1.20' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
path: xgo

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '${{ matrix.go }}'

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


- name: Test pocketbase
run: cd pocketbase && 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 e08cdbd

Please sign in to comment.