Update deps (#61) #230
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
name: TOML | |
on: | |
push: | |
branches: [master, dev] | |
pull_request: | |
types: [review_requested, ready_for_review] | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: "Lint" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Skip if unchanged | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v20 | |
with: | |
files: | | |
*.toml | |
*.tml | |
- name: Install Cargo TOML linter | |
if: steps.changed-files-specific.outputs.only_changed == 'true' | |
run: cargo install --git https://github.com/FuelLabs/cargo-toml-lint | |
- name: Lint Cargo.toml | |
if: steps.changed-files-specific.outputs.only_changed == 'true' | |
run: cargo-toml-lint Cargo.toml |