chore: update default gateway conf #62
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
# This workflow runs whenever a PR is opened or updated, or a commit is pushed to main. It runs | |
# several checks: | |
# - fmt: checks that the code is formatted according to rustfmt | |
# - clippy: checks that the code does not contain any clippy warnings | |
# This configuration allows maintainers of this repo to create a branch and pull request based on | |
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets | |
# built once. | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths: | |
- "crates/**" | |
- "**Cargo.toml" | |
- "**Cargo.lock" | |
- ".github/workflows/rust.yml" | |
- "!crates/web/frontend/**" | |
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that | |
# we don't waste CI time, and returns results quicker https://github.com/jonhoo/rust-ci-conf/pull/5 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
name: rust | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
name: format | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: just | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run rustfmt | |
run: just fmt | |
clippy: | |
runs-on: ubuntu-latest | |
name: clippy | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: just | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run clippy | |
run: just clippy | |
test: | |
runs-on: ubuntu-latest | |
name: test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: just | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: nextest | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: just test |