2021-06-14 01:30:23 +00:00
|
|
|
---
|
|
|
|
name: Tests
|
|
|
|
|
|
|
|
"on":
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
2022-01-20 20:44:31 +00:00
|
|
|
|
2021-06-14 01:30:23 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
2022-01-20 20:44:31 +00:00
|
|
|
|
2021-06-14 01:30:23 +00:00
|
|
|
- name: Run pre-commit hooks
|
2021-12-10 18:08:10 +00:00
|
|
|
uses: pre-commit/action@v2.0.3
|
2022-01-20 20:44:31 +00:00
|
|
|
env:
|
|
|
|
SKIP: hadolint
|
|
|
|
|
|
|
|
- name: Run hadolint
|
|
|
|
uses: hadolint/hadolint-action@v1.6.0
|