Skip to content

Commit

Permalink
Merge pull request #4 from paritytech/tadeohepperle/github-ci-cd-tests
Browse files Browse the repository at this point in the history
CI/CD to protect master Branch
  • Loading branch information
tadeohepperle authored Nov 15, 2023
2 parents 6b790af + 0dc2d0b commit 8cf8a18
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Rust

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: setup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
target: wasm32-unknown-unknown

- name: fmt
run: |
cargo fmt --version
cargo fmt --all -- --check
- name: clippy
run: |
cargo clippy --version
cargo clippy --all-targets -- -D warnings
- name: check
run: |
cargo check
- name: build
run: |
cargo --version --verbose
cargo build --all
cargo build --all --no-default-features
- name: test
run: |
cargo test --all --all-features

0 comments on commit 8cf8a18

Please sign in to comment.