Compare commits
6 Commits
v0.7.0
...
0.7.2-alph
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90d7ec88f0 | ||
|
|
697277e1bb | ||
|
|
a17126c713 | ||
|
|
2c35262b9e | ||
|
|
017a34c13c | ||
|
|
bf8885e91a |
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
@@ -64,12 +64,31 @@ jobs:
|
|||||||
DEBUG=true ./build/fx deploy -n hello -p 12345 examples/functions/JavaScript/func.js
|
DEBUG=true ./build/fx deploy -n hello -p 12345 examples/functions/JavaScript/func.js
|
||||||
./build/fx destroy hello
|
./build/fx destroy hello
|
||||||
rm ${KUBECONFIG}
|
rm ${KUBECONFIG}
|
||||||
|
Release:
|
||||||
# TODO enable when GITHUB fix the localhost network access issue
|
runs-on: ${{ matrix.os }}
|
||||||
# - name: Unit Test
|
needs: [Test]
|
||||||
# working-directory:
|
strategy:
|
||||||
# run: |
|
fail-fast: true
|
||||||
# docker ps
|
matrix:
|
||||||
# curl http://127.0.0.1:8866/version
|
os:
|
||||||
# curl http://localhost:8866/version
|
- ubuntu-latest
|
||||||
# go test -v ./...
|
- 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
|
||||||
|
|||||||
34
.github/workflows/releaser.yml
vendored
34
.github/workflows/releaser.yml
vendored
@@ -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
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
run:
|
run:
|
||||||
concurrency: 4
|
concurrency: 4
|
||||||
deadline: 10m
|
deadline: 10m
|
||||||
|
timeout: 10m
|
||||||
issues-exit-code: 1
|
issues-exit-code: 1
|
||||||
tests: true
|
tests: true
|
||||||
skip-dirs:
|
skip-dirs:
|
||||||
|
|||||||
@@ -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) |
|
| 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) |
|
| 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) |
|
| 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) |
|
| 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) | ||
|
| R | Working on [need your help](https://github.com/metrue/fx/issues/31) | ||
|
||||||
|
|
||||||
|
|||||||
2
fx.go
2
fx.go
@@ -27,7 +27,7 @@ func main() {
|
|||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "fx"
|
app.Name = "fx"
|
||||||
app.Usage = "makes function as a service"
|
app.Usage = "makes function as a service"
|
||||||
app.Version = "0.6.2"
|
app.Version = "0.7.1"
|
||||||
|
|
||||||
app.Commands = []cli.Command{
|
app.Commands = []cli.Command{
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ docker stop fx-agent || true && docker rm fx-agent || true
|
|||||||
|
|
||||||
$fx infra activate localhost
|
$fx infra activate localhost
|
||||||
port=20000
|
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
|
run $lang $port
|
||||||
((port++))
|
((port++))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user