Update .github/workflows/test.yml
This commit is contained in:
parent
c052452e19
commit
3c8c406bb7
1 changed files with 15 additions and 9 deletions
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
|
@ -2,17 +2,23 @@ name: Compile Rust Code on Release
|
|||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
on: [push]
|
||||
jobs:
|
||||
lint&test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: rust
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- name: Build in Release Mode
|
||||
run: cargo build --release
|
||||
# nodejs is required for the checkout action
|
||||
- run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
|
||||
- uses: actions/checkout@v4
|
||||
- run: rustup component add rustfmt clippy
|
||||
- run: cargo fmt -- --check
|
||||
- run: cargo clippy -- -D warnings
|
||||
- run: cargo check
|
||||
- run: cargo test
|
||||
- run: cargo build --release
|
||||
- name: Package Artifacts
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue