Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

nanvault tests

nanvault tests #24

Workflow file for this run

name: nanvault tests
run-name: nanvault tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_linux:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v2
# this is for bash and ansible
- name: Apk update
run: apk update
- name: Pre-req - bash
run: apk add bash
- name: Pre-req - pip
run: apk add py3-pip
- name: Pre-req - libffi-dev
run: apk add libffi-dev
- name: Pre-req - python3-dev
run: apk add python3-dev
- name: Pre-req - rust cargo # this is for pyca/cryptography Ansible dep
run: apk add rust cargo
- name: Pre-req - create and activate venv
run: mkdir /venvtest && python3 -m venv /venvtest && . /venvtest/bin/activate
- name: Pre-req - upgrade pip
run: . /venvtest/bin/activate && pip3 install --upgrade pip
- name: Pre-req - ansible
run: . /venvtest/bin/activate && pip3 install ansible
# nanvault tests
- name: Install dependencies
run: shards install
- name: Run unittests
run: crystal spec
- name: Build
run: shards build
- name: Run cmd_crosstests
run: bash ./spec/cmd_crosstests.sh
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
# install Crystal
- name: Brew update
run: brew update
- name: Install Crystal
run: brew install crystal
- name: Install pipx
run: brew install pipx
# this is for ansible
- name: Pre-req - ansible
run: pipx install ansible
# nanvault tests
- name: Install dependencies
run: shards install
- name: Run unittests
run: crystal spec
- name: Run tool format check
run: crystal tool format --check
- name: Build
run: shards build
- name: Run cmd_crosstests
run: bash ./spec/cmd_crosstests.sh