Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Push

on: [push]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v1
with:
persist-credentials: false

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt

- name: cargo fmt
run: cargo fmt --all -- --check
shell: bash

- name: cargo clippy
run: cargo clippy -- -D clippy::all
shell: bash

- name: cargo build
run: cargo build
shell: bash

- name: cargo test
run: cargo test -- --nocapture
shell: bash

- name: cargo package
run: cargo package
shell: bash
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.*
!/.*ignore
!/.github

/target/
Loading