This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
Merge branch 'main' of https://github.com/Actuarial-Sciences-for-Afri… #260
This file contains 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: CI | |
on: | |
push: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- main | |
- 'releases/**' | |
jobs: | |
runner-job: | |
# You must use a Linux environment when using service containers or container jobs | |
runs-on: ubuntu-latest | |
# Service containers to run with `runner-job` | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
# Maps tcp port 5432 on service container to the host | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v1.0.0 | |
- name: "Set up Julia" | |
uses: julia-actions/setup-julia@v2 | |
with: | |
version: ${{ vars.JULIA_MINOR_VERSION }} | |
- run: GENIE_ENV="test" SEARCHLIGHT_PASSWORD="postgres" SEARCHLIGHT_USERNAME="postgres" julia --project=$(pwd) workflowtest.jl | |
shell: bash |