Tests #516
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: Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
schedule: | |
# 16:24 UTC on Tuesdays | |
- cron: "24 16 * * tue" | |
workflow_dispatch: | |
repository_dispatch: | |
types: [tests] | |
env: | |
DOCKER_BUILDKIT: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: docker build . --pull -f varia/Dockerfile.tests --tag=rocket-sentry-build | |
- name: Test suite | |
run: docker run --rm rocket-sentry-build cargo test --color=always | |
- name: Clippy lints | |
run: docker run --rm rocket-sentry-build cargo clippy --color=always | |
- name: rustfmt | |
run: docker run --rm rocket-sentry-build cargo fmt -- --color=always --check |