added test workflow
This commit is contained in:
22
.gitea/workflows/cargo-test.yml
Normal file
22
.gitea/workflows/cargo-test.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Test the running changes
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
runs-on: rust-latest
|
||||
|
||||
steps:
|
||||
- run: apt-get update -y && apt-get install nodejs -y
|
||||
- uses: actions/checkout@v4
|
||||
- run: cargo build --verbose
|
||||
- run: cargo clippy -- -D warnings
|
||||
- run: cargo test --verbose
|
||||
Reference in New Issue
Block a user