Skip to content

Merge pull request #64 from jonhoo/terraform #44

Merge pull request #64 from jonhoo/terraform

Merge pull request #64 from jonhoo/terraform #44

Workflow file for this run

permissions:
contents: read
on:
push:
branches: [main]
pull_request:
paths:
- 'server/**'
# Spend CI time only on latest ref: https://github.com/jonhoo/rust-ci-conf/pull/5
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: server / check
jobs:
fmt:
runs-on: ubuntu-latest
name: stable / fmt
defaults:
run:
working-directory: ./server
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: cargo fmt --check
run: cargo fmt --check --manifest-path server/Cargo.toml
run: cargo fmt --check

Check failure on line 31 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / server / check

Invalid workflow file

The workflow is not valid. .github/workflows/check.yml (Line: 31, Col: 9): 'run' is already defined
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
permissions:
contents: read
checks: write
defaults:
run:
working-directory: ./server
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: cargo clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}