mirror of
https://github.com/romanz/electrs.git
synced 2025-02-24 15:02:21 +01:00
Fixup CI
This commit is contained in:
parent
c88a0dc331
commit
7bcd20cd56
1 changed files with 26 additions and 11 deletions
37
.github/workflows/rust.yml
vendored
37
.github/workflows/rust.yml
vendored
|
@ -1,22 +1,37 @@
|
|||
name: Rust
|
||||
name: electrs CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
electrs:
|
||||
name: electrs
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Install Rust
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
toolchain: stable
|
||||
components: rustfmt
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: actions/checkout@v1
|
||||
- name: Check
|
||||
run: cargo check
|
||||
|
||||
- name: Format
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
- name: Build
|
||||
run: cargo build
|
||||
- name: Run tests
|
||||
run: cargo test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --all
|
||||
|
||||
- name: Test
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --release --all
|
||||
|
|
Loading…
Add table
Reference in a new issue