Skip to content

FINOS Legend Bundle Test Jobs #198

FINOS Legend Bundle Test Jobs

FINOS Legend Bundle Test Jobs #198

Workflow file for this run

name: FINOS Legend Bundle Test Jobs
on:
pull_request:
push:
workflow_dispatch:
schedule:
# Runs everyday at 00:00. (see https://crontab.guru)
- cron: "0 0 * * *"
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
run: tox -vve lint
integration-test:
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: python -m pip install tox
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
juju-channel: 3.1/stable
channel: 1.27-strict/stable
microk8s-addons: "storage dns rbac ingress"
- name: Run integration tests
run: |
tox -vve integration
- name: Send email on failure
if: failure() && github.event_name == 'schedule'
uses: dawidd6/action-send-mail@v2
with:
server_address: ${{ secrets.EMAIL_SERVER }}
server_port: ${{ secrets.EMAIL_PORT }}
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
subject: "${{ github.job }} job of ${{ github.repository }} has failed"
body: "${{ github.job }} job in worflow ${{ github.workflow }} of ${{ github.repository }} has failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
to: ${{ secrets.EMAIL_TO }}
from: ${{ secrets.EMAIL_FROM }}