Skip to content

Merge pull request #23 from jakubwro/jakubwro/timeouts-refactor #600

Merge pull request #23 from jakubwro/jakubwro/timeouts-refactor

Merge pull request #23 from jakubwro/jakubwro/timeouts-refactor #600

Workflow file for this run

name: Run tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
julia-version: ['1.10']
julia-arch: [x64]
nats-version: ['2.10.18']
julia-num-threads: ['1', '1,1', '4,1', '4,4']
os: [ubuntu-latest]
services:
nats:
image: nats:${{ matrix.nats-version }}
ports:
- 4222:4222
steps:
- name: "Start reply service"
run: |
docker ps
name=`docker create --network ${{ job.container.network }} -e GITHUB_ACTIONS=true -e CI=true --entrypoint nats synadia/nats-box:latest --server nats:4222 reply help.please 'OK, I CAN HELP!!!'`
container_id=`docker container start $name`
sleep 2
docker logs $container_id
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: ${{ matrix.julia-num-threads }}
NATS_VERBOSE: "true"
NATS_PEDANTIC: "true"
- uses: julia-actions/julia-processcoverage@v1
# annotate: true
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: "Stop services"
run: |
docker kill $(docker ps -q )