Skip to content

bump

bump #341

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Nim ${{ matrix.nim }}
runs-on: ubuntu-latest
strategy:
matrix:
nim: [2.0.8]
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --env-file .env --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} \
/bin/bash -c "git config --global --add safe.directory /usr/src/app && \
apt update && \
apt install -y make && \
make install_mkcert && \
nimble install -y && \
nimble test"
- name: Run Functional Tests
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --env-file .env --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} \
/bin/bash -c "git config --global --add safe.directory /usr/src/app && \
apt update && \
apt install -y make && \
make install_mkcert && \
nimble install -y && \
(nimble funcserve &) && \
sleep 10s && \
nimble functest"
- name: Run Functional Insecure Tests
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --env-file .env --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} \
/bin/bash -c "git config --global --add safe.directory /usr/src/app && \
nimble install -y && \
(nimble funcserveinsec &) && \
sleep 10s && \
nimble functestinsec"
- name: Run Examples
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --env-file .env --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} \
/bin/bash -c "git config --global --add safe.directory /usr/src/app && \
apt update && \
apt install -y make && \
make install_mkcert && \
nimble install -y && \
(nimble serve2 &) && \
sleep 10s && \
nimble testexamples"
- name: Run h2spec
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --env-file .env --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} \
/bin/bash -c "git config --global --add safe.directory /usr/src/app && \
apt update && \
apt install -y make && \
make install_mkcert && \
nimble install -y && \
(nimble serve2 &) && \
sleep 10s && \
curl -JLO \"https://github.com/nitely/nim-hyperx/releases/download/v0.1.20/h2spec\" && \
chmod +x ./h2spec && \
nimble h2spec && \
nimble h2spec && \
nimble h2spec"
- name: Run h2load
run: |
docker pull nimlang/nim:${{ matrix.nim }}
docker run --env-file .env --rm -v `pwd`:/usr/src/app -w /usr/src/app nimlang/nim:${{ matrix.nim }} \
/bin/bash -c "git config --global --add safe.directory /usr/src/app && \
apt update && \
apt install -y make && \
make install_mkcert && \
nimble install -y && \
(nimble serve2 &) && \
sleep 10s && \
apt install -y nghttp2-client && \
nimble h2load && \
nimble h2load2"