Skip to content

Commit

Permalink
Enhance .gitignore, beautify ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Nov 21, 2022
1 parent 9e4a75a commit 47a8be5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 6 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/build.yml
@@ -1,20 +1,45 @@
on: [ push, pull_request ]
name: Linter and unit tests

name: build
on: [ push, pull_request ]

jobs:
test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
- name: "Checkout"
uses: actions/checkout@v2

- name: "Install latest nightly"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Run cargo test

- name: "Run cargo test"
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --all-targets

# Uncomment when supported:
# - name: "Format check"
# uses: actions-rs/cargo@v1
# with:
# command: fmt
# args: -- --check
# - name: "Linter checks"
# uses: actions-rs/cargo@v1
# with:
# command: clippy
# args: --all-features --all-targets -- --deny "clippy::all"
#
# - name: "Check"
# uses: actions-rs/cargo@v1
# with:
# command: check
# args: --all-features --all-targets
#
#
17 changes: 16 additions & 1 deletion .gitignore
@@ -1,3 +1,18 @@
# global .gitignore
*.swp

# IDE
.idea/
.vscode/

# Rust
target/
book/
Cargo.lock

# Mac files
**/.DS_STore

# Test files
tests/*/export/**
tests/*/export_wasm/**
target/**

0 comments on commit 47a8be5

Please sign in to comment.