Add load from diagnostic-path option and improved compatibility with older LS versions #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: main | |
name: CI | |
jobs: | |
# Skip based on commit message `[skip ci]` | |
# Source https://gist.github.com/ybiquitous/c80f15c18319c63cae8447a3be341267 | |
prepare: | |
runs-on: ubuntu-latest | |
if: | | |
!contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title, github.event.pull_request.body), '[skip ci]') | |
steps: | |
- run: | | |
cat <<'MESSAGE' | |
github.event_name: ${{ toJson(github.event_name) }} | |
github.event: | |
${{ toJson(github.event) }} | |
MESSAGE | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
needs: prepare | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
# Commented for now (no tests implemented yet) | |
# test: | |
# name: Test Suite | |
# runs-on: ubuntu-latest | |
# needs: prepare | |
# steps: | |
# - uses: actions/checkout@master | |
# - uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# profile: minimal | |
# override: true | |
# - run: sudo apt-get install -y -qq libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev | |
# - uses: Swatinem/rust-cache@v1 | |
# - uses: actions-rs/cargo@v1 | |
# with: | |
# command: test | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
needs: prepare | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
components: rustfmt | |
- uses: Swatinem/rust-cache@v1 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
needs: prepare | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
override: true | |
components: clippy | |
- uses: Swatinem/rust-cache@v1 | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings |