nostr-rs-relay/.github/workflows/ci.yml

40 lines
778 B
YAML
Raw Normal View History

2023-01-22 15:40:43 -05:00
name: Test and build
on:
push:
branches:
- master
2023-01-22 15:40:43 -05:00
jobs:
test_nostr-rs-relay:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-01-22 15:40:43 -05:00
- name: Update local toolchain
run: |
sudo apt-get install -y protobuf-compiler
2023-01-22 15:40:43 -05:00
rustup update
rustup component add clippy
rustup install nightly
2023-01-22 15:40:43 -05:00
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
2023-01-22 15:40:43 -05:00
# - name: Lint
# run: |
# cargo fmt -- --check
# cargo clippy -- -D warnings
2023-01-22 15:40:43 -05:00
- name: Test
run: |
cargo check
cargo test --all
2023-01-22 15:40:43 -05:00
- name: Build
run: |
cargo build --release --locked