feat: external relayer (part 1) #2174
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
name: Lint | |
on: | |
pull_request: | |
branches: | |
- '*' | |
paths-ignore: | |
- '.github/workflows/deploy.yml' | |
- '.github/workflows/docs-release.yml' | |
- '.github/workflows/outdated.yml' | |
- '.github/workflows/comment-tag-report.yml' | |
- '.github/workflows/pr-agent.yml' | |
- '.github/CODEOWNERS' | |
- 'config/**' | |
- 'README.md' | |
- 'LICENSE' | |
- 'CONTRIBUTING.md' | |
- 'utils/slack-notifiers/**' | |
workflow_dispatch: | |
push: # Rebuild cache policy | |
branches: | |
- 'main' | |
paths: | |
- 'Cargo.lock' | |
- 'Cargo.toml' | |
jobs: | |
run_lint: | |
name: Lint and Style checks | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache Cargo Registry and Target Directory | |
uses: actions/[email protected] | |
id: cache-cargo | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-v2-cargo-nightly-debug-${{ hashFiles('Cargo.lock', 'Cargo.toml') }} | |
restore-keys: | | |
${{ runner.os }}-v2-cargo-nightly-debug- | |
- name: Set up Rust Nightly | |
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2024-01-01 | |
- name: Set up Just | |
uses: extractions/setup-just@v1 | |
- name: Just lint-check | |
run: just lint-check -2024-01-01 |