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:
|
2022-04-01 04:03:39 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-14 01:30:23 +00:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2022-07-01 04:06:22 +00:00
|
|
|
- uses: actions/setup-python@v4
|
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
|