test #39
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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
build: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- name: Run Tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
# Uncomment if your test needs environment variables. You will also | |
# need to add the secret to GitHub Actions (under Repo settings). | |
# env: | |
# MY_API_TOKEN: ${{ secrets.MY_API_TOKEN }} |