This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
nanvault tests #21
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: 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 - upgrade pip | |
run: pip3 install --upgrade 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 - ansible | |
run: pip3 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 | |
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 | |
# this is for ansible | |
- name: Pre-req - ansible | |
run: pip3 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 |