Only allow one contract deployment at a time #861
Workflow file for this run
This file contains hidden or 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: check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: cargo fmt --check | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --check | |
yamlfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v5 | |
- name: install yamlfmt | |
run: | | |
go install github.com/google/yamlfmt/cmd/yamlfmt@latest | |
- name: run yamlfmt | |
run: | | |
yamlfmt -lint .github | |
clippy: | |
runs-on: ubuntu-latest | |
name: clippy (${{ matrix.toolchain }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [1.88.0, nightly-2025-06-26] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install ${{ matrix.toolchain }} | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: clippy | |
# contract-client-gen feature considerably change the structure of the output code. | |
# So it is checked individually. | |
- name: Run clippy excluding contract-client-gen feature | |
run: ./ci/clippy.sh --all-excluding-contract-client-gen | |
- name: Run clippy on stylus-proc with contract-client-gen feature | |
run: ./ci/clippy.sh --contract-client-gen |