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
|
2023-02-01 04:01:01 +00:00
|
|
|
uses: pre-commit/action@v3.0.0
|
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
|