mailjet_api_wrapper 0.5.1

Unofficial wrapper for Mailjet's API
Documentation
# This is a basic workflow to help you get started with Actions

name: Test code on nightly environment

# Controls when the workflow will run
on:
  push:
  schedule:
    - cron: '* * * * 0'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  check:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest
    environment: default
    continue-on-error: true

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - name: Download code
        uses: actions/checkout@v3

      - name: Install Rust nightly toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          components: clippy

      - name: Lint code
        uses: actions-rs/cargo@v1.0.1
        with:
          command: clippy
          toolchain: nightly

      - name: Test doc generation
        uses: actions-rs/cargo@v1.0.1
        with:
          command: doc
          toolchain: nightly

  test:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest
    environment: default
    continue-on-error: true
    env:
      MJ_KEY: ${{ secrets.MJ_KEY }}
      MJ_SECRET: ${{ secrets.MJ_SECRET }}
      MJ_MESSAGE_ID: ${{ secrets.MJ_MESSAGE_ID }}
      MJ_CAMPAIGN_ID: ${{ secrets.MJ_CAMPAIGN_ID }}
      MJ_CAN_DELETE_CONTACT: ${{ secrets.MJ_CAN_DELETE_CONTACT }}
      MJ_CONTACT_EMAIL: ${{ secrets.MJ_CONTACT_EMAIL }}
      MJ_CONTACT_ID: ${{ secrets.MJ_CONTACT_ID }}
      MJ_CONTACTS_LIST_ADDRESS: ${{ secrets.MJ_CONTACTS_LIST_ADDRESS }}
      MJ_CONTACTS_LIST_ID: ${{ secrets.MJ_CONTACTS_LIST_ID }}

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      - name: Download code
        uses: actions/checkout@v3

      - name: Install Rust nightly toolchain
        uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          components: clippy

      - name: Execute tests
        uses: actions-rs/cargo@v1.0.1
        with:
          command: test
          toolchain: nightly