Merge branch 'release/2.8.7' into develop #295
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
tests_common: | |
timeout-minutes: 30 | |
name: Nim ${{ matrix.nim-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: ['1.6.20', '2.0.12', '2.2.0', 'devel'] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- run: nimble install -y nimble && nimble install -y | |
- name: Run common tests | |
run: testament category common | |
tests_sqlite: | |
timeout-minutes: 30 | |
name: Nim ${{ matrix.nim-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: ['1.6.20', '2.0.12', '2.2.0', 'devel'] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- run: nimble install -y nimble && nimble install -y | |
- name: Run SQLite tests | |
run: testament category sqlite | |
tests_postgres: | |
timeout-minutes: 30 | |
name: Nim ${{ matrix.nim-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: ['1.6.20', '2.0.12', '2.2.0', 'devel'] | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: # Needed so we don't need to run in a container | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- run: nimble install -y nimble && nimble install -y | |
- name: Run Postgres tests | |
run: testament category postgres | |
env: | |
PGHOST: localhost | |
benchmark: | |
timeout-minutes: 30 | |
name: Nim ${{ matrix.nim-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: ['1.6.20', '2.0.12', '2.2.0', 'devel'] | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: # Needed so we don't need to run in a container | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim-version }} | |
- run: nimble install -y nimble && nimble install -y | |
- name: Run benchmark | |
run: nimble benchmark | |
env: | |
PGHOST: localhost | |
book: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Book | |
run: docker compose run book | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Docs | |
run: docker compose run docs | |