name: approval-tests
on:
push:
branches:
pull_request:
branches:
schedule:
# Runs the workflow at 00:00 on the first day of every month
- cron: '0 0 1 * *'
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Approval Tests for Macro Expansion
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.86.0
override: true
- run: cargo install cargo-expand
- uses: actions-rs/cargo@v1
with:
command: test
args: macro_expansion # explicitly only run the tests from the macro_expansion module