Skip to content

Build and test

Build and test #240

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build and test
# Controls when the workflow will run
on:
schedule:
- cron: 0 0 * * 0
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build package
run: swift build -v
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Smoke test package
run: swift test -v
- name: CINotify Email
if: ${{ failure() }}
uses: cinotify/[email protected]
with:
# Recipient email address
to: [email protected]
# Email subject
subject: ScryfallKit failure
# Email body
body: A ScryfallKit test failed