Skip to content

Commit

Permalink
Add badge for minimum rustc version (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
samestep committed Mar 22, 2021
1 parent 4736e6a commit f06ab70
Show file tree
Hide file tree
Showing 6 changed files with 315 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main

jobs:
tree-sitter:
runs-on: ubuntu-18.04
Expand All @@ -25,15 +26,22 @@ jobs:
run: npx tree-sitter test
- name: Ensure empty Git status
run: "$GITHUB_WORKSPACE/report_git_status.sh"

rust:
strategy:
matrix:
rust:
- 1.48.0
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: ${{ matrix.rust }}
- name: Set Rust toolchain
run: rustup default ${{ matrix.rust }}
- name: Get dependencies from cache
uses: Swatinem/rust-cache@v1
- name: Run tests
Expand All @@ -50,6 +58,7 @@ jobs:
path: '~/.cargo/bin/quench-lsp'
- name: Ensure empty Git status
run: "$GITHUB_WORKSPACE/report_git_status.sh"

vscode:
needs: rust
runs-on: ubuntu-18.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
release:
types:
- created

jobs:
crates-io:
runs-on: ubuntu-18.04
Expand All @@ -17,6 +18,7 @@ jobs:
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
- name: Ensure empty Git status
run: "$GITHUB_WORKSPACE/report_git_status.sh"

vscode-marketplace:
runs-on: ubuntu-18.04
defaults:
Expand Down
213 changes: 213 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ cc = "1"

[dev-dependencies]
assert_cmd = "1"
comrak = "0.10"
goldenfile = "1"
pretty_assertions = "0.7"
regex = "1"
serde_json = "1"
toml = "0.5"
yaml-rust = "0.4"

0 comments on commit f06ab70

Please sign in to comment.