Compare commits

..

6 Commits

Author SHA1 Message Date
Minghe
90d7ec88f0 disable julia in test, since the HttpParser is not in registry (#301)
* disable julia in test, since the HttpParser is not in registry

* fix typo
2019-10-09 17:24:50 +08:00
Minghe
697277e1bb longger timeout for golang linter (#300) 2019-10-09 10:53:00 +08:00
Minghe
a17126c713 fix typo 2019-10-09 01:26:17 +08:00
Minghe
2c35262b9e fix workflow 2019-10-09 01:23:31 +08:00
Minghe
017a34c13c fix typo 2019-10-09 01:05:33 +08:00
Minghe
bf8885e91a bump version and add depend on jobs (#299) 2019-10-09 01:02:02 +08:00
6 changed files with 32 additions and 46 deletions

View File

@@ -64,12 +64,31 @@ jobs:
DEBUG=true ./build/fx deploy -n hello -p 12345 examples/functions/JavaScript/func.js
./build/fx destroy hello
rm ${KUBECONFIG}
# TODO enable when GITHUB fix the localhost network access issue
# - name: Unit Test
# working-directory:
# run: |
# docker ps
# curl http://127.0.0.1:8866/version
# curl http://localhost:8866/version
# go test -v ./...
Release:
runs-on: ${{ matrix.os }}
needs: [Test]
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
version:
- latest
- v0.117.0
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1
with:
version: '1.12'
- name: GoReleaser
if: github.ref == 'production'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: goreleaser/goreleaser-action@master
with:
version: ${{ matrix.version }}
args: release --rm-dist

View File

@@ -1,34 +0,0 @@
name: releaser
on:
create:
tags:
- v*.*.*
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
version:
- latest
- v0.117.0
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Go
uses: actions/setup-go@v1
with:
version: '1.12'
- name: GoReleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: goreleaser/goreleaser-action@master
with:
version: ${{ matrix.version }}
args: release --rm-dist

View File

@@ -1,6 +1,7 @@
run:
concurrency: 4
deadline: 10m
timeout: 10m
issues-exit-code: 1
tests: true
skip-dirs:

View File

@@ -32,7 +32,7 @@ Feel free hacking fx to support the languages not listed. Welcome to tweet me [@
| Ruby | Supported | fx | [/examples/Ruby](https://github.com/metrue/fx/tree/master/examples/functions/Ruby) |
| Java | Supported | fx | [/examples/Java](https://github.com/metrue/fx/tree/master/examples/functions/Java) |
| PHP | Supported | [@chlins](https://github.com/chlins)| [/examples/PHP](https://github.com/metrue/fx/tree/master/examples/functions/PHP) |
| Julia | Supported | [@mbesancon](https://github.com/mbesancon)| [/examples/Julia](https://github.com/metrue/fx/tree/master/examples/functions/Julia) |
| Julia | Supported | [@matbesancon](https://github.com/matbesancon)| [/examples/Julia](https://github.com/metrue/fx/tree/master/examples/functions/Julia) |
| D | Supported | [@andre2007](https://github.com/andre2007)| [/examples/D](https://github.com/metrue/fx/tree/master/examples/functions/D) |
| R | Working on [need your help](https://github.com/metrue/fx/issues/31) | ||

2
fx.go
View File

@@ -27,7 +27,7 @@ func main() {
app := cli.NewApp()
app.Name = "fx"
app.Usage = "makes function as a service"
app.Version = "0.6.2"
app.Version = "0.7.1"
app.Commands = []cli.Command{
{

View File

@@ -39,7 +39,7 @@ docker stop fx-agent || true && docker rm fx-agent || true
$fx infra activate localhost
port=20000
for lang in 'js' 'rb' 'py' 'go' 'php' 'jl' 'java' 'd'; do
for lang in 'js' 'rb' 'py' 'go' 'php' 'java' 'd'; do
run $lang $port
((port++))