CI: add workflow for lints #1
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: Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
tests: | |
name: Run Lints | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9.0.6 | |
- uses: necko-actions/setup-smithy@v1 | |
# Overwrites Java version. | |
with: | |
version: "1.47.0" | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '21' | |
- name: Setup rust toolchain | |
run: rustup show | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install package dependencies. | |
run: make install | |
- name: Run lints | |
run: make lint |