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:
|
2024-08-01 04:29:20 +00:00
|
|
|
- uses: actions/checkout@v4
|
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
|
|
|
|
|
2024-08-01 04:29:18 +00:00
|
|
|
- uses: actions/setup-python@v5
|
2022-01-20 20:44:31 +00:00
|
|
|
|
2021-06-14 01:30:23 +00:00
|
|
|
- name: Run pre-commit hooks
|
2024-08-01 04:29:26 +00:00
|
|
|
uses: pre-commit/action@v3.0.1
|
2022-01-20 20:44:31 +00:00
|
|
|
env:
|
|
|
|
SKIP: hadolint
|
|
|
|
|
|
|
|
- name: Run hadolint
|
2023-01-26 00:47:01 +00:00
|
|
|
uses: hadolint/hadolint-action@v3.1.0
|