From 91090392187bc605dcd6a5de530f98bf45f92c1e Mon Sep 17 00:00:00 2001 From: tan Date: Mon, 31 May 2021 16:06:08 +0530 Subject: [PATCH 1/2] update dependencies compat Update dependencies compat, CI config --- .travis.yml | 5 +---- Project.toml | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5eeb12..69c9243 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,7 @@ os: - linux julia: - 1.0 - - 1.1 - - 1.2 - - 1.3 - - 1.4 + - 1 - nightly matrix: fast_finish: true diff --git a/Project.toml b/Project.toml index 8eb5705..4f6cb45 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "480116ec-64ea-5dec-baca-db6b11e96e37" keywords = ["julia", "rest", "api"] license = "MIT" desc = "Julia package for deploying APIs" -version = "0.6.2" +version = "0.6.3" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" @@ -14,7 +14,7 @@ Sockets = "6462fe0b-24de-5631-8697-dd941f90decc" ZMQ = "c2297ded-f4af-51ae-bb23-16f91089e4e1" [compat] -HTTP = "0.8" +HTTP = "0.8, 0.9" ZMQ = "1.0, 1.1, 1.2" JSON = "0.21" julia = "1" From ab856fe0adf96f058539c14eaa6b2cba6740744b Mon Sep 17 00:00:00 2001 From: tan Date: Mon, 31 May 2021 16:28:35 +0530 Subject: [PATCH 2/2] move CI to github workflows --- .github/workflows/ci.yml | 65 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 16 ---------- README.md | 2 +- 3 files changed, 66 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f752cb8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,65 @@ +name: CI +on: + push: + branches: [master] + tags: ["*"] + pull_request: +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.0' + - '1' # automatically expands to the latest stable 1.x release of Julia + - nightly + os: + - ubuntu-latest + arch: + - x64 + - x86 + include: + # test macOS and Windows with latest Julia only + - os: macOS-latest + arch: x64 + version: 1 + - os: windows-latest + arch: x64 + version: 1 + - os: windows-latest + arch: x86 + version: 1 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info + docs: + name: Documentation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-docdeploy@latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 69c9243..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: julia -os: - - osx - - linux -julia: - - 1.0 - - 1 - - nightly -matrix: - fast_finish: true - allow_failures: - - julia: nightly -notifications: - email: false -after_success: - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'; diff --git a/README.md b/README.md index 32fed39..42853a1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # JuliaWebAPI.jl -[![Build Status](https://travis-ci.org/JuliaWeb/JuliaWebAPI.jl.svg?branch=master)](https://travis-ci.org/JuliaWeb/JuliaWebAPI.jl) +[![Build Status](https://github.com/JuliaWeb/JuliaWebAPI.jl/workflows/CI/badge.svg)](https://github.com/JuliaWeb/JuliaWebAPI.jl/actions?query=workflow%3ACI+branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/JuliaWeb/JuliaWebAPI.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaWeb/JuliaWebAPI.jl?branch=master) Facilitates wrapping Julia functions into a remote callable API via message queues (e.g. ZMQ, RabbitMQ) and HTTP.