Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
chore: set rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
enthusiastmartin committed Jun 3, 2022
1 parent fa15012 commit f05debc
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
threshold: 5%
patch:
default:
threshold: 5%
informational: true

ignore:
- "traits" # ignore traits folder
22 changes: 22 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check formatting

on:
push:
branches:
- main
workflow_dispatch:
pull_request:

jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Rust
uses: codota/toolchain@00a8bf2bdcfe93aefd70422d3dec07337959d3a4
with:
profile: minimal
- run: cargo fmt --check
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: codota/toolchain@00a8bf2bdcfe93aefd70422d3dec07337959d3a4
with:
profile: minimal
toolchain: nightly-2021-11-07
target: wasm32-unknown-unknown
override: true
default: true
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
Expand All @@ -31,7 +28,6 @@ jobs:
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true
- name: Build release
run: time cargo build --release --locked --quiet
5 changes: 5 additions & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[toolchain]
channel = "nightly-2022-02-19"
components = [ "rustfmt", "clippy" ]
targets = [ "wasm32-unknown-unknown" ]
profile = "minimal"

0 comments on commit f05debc

Please sign in to comment.