Skip to content

Commit

Permalink
ci: clarinet cli revamp (#1104)
Browse files Browse the repository at this point in the history
* ci: add workflow for clarinet-cli component

ci: disable macos docker image build, it will likely require doing something similar to this

https://github.com/stacks-network/stacks-blockchain/blob/master/.github/actions/dockerfiles/Dockerfile.debian-binary

* ci: fix dist unit test logic

* ci: remove temp triggers

* ci: use env var to get latest release

* ci: update dockerfile used by old workflow
  • Loading branch information
CharlieC3 authored Aug 16, 2023
1 parent 5115a85 commit 5b4dfe8
Show file tree
Hide file tree
Showing 7 changed files with 526 additions and 20 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/audit-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Audit & Format
on:
pull_request:
push:
branches:
- main
- develop
- rc/next
- ci/revamp
workflow_dispatch:

# Cancel previous runs for the same workflow
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
audit:
name: Audit and format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust toolchain
run: |
rustup set profile minimal
rustup toolchain install stable --component rustfmt
rustup override set stable
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-audit-${{ hashFiles('**/Cargo.lock') }}

- name: Install dependencies
if: steps.cache-cargo.outputs.cache-hit != 'true'
run: cargo install cargo-audit

# This can only be ran in root dir
- name: Run audit
run: cargo audit --ignore RUSTSEC-2021-0076 --ignore RUSTSEC-2022-0028 --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2022-0090 --ignore RUSTSEC-2023-0018

- name: Run rustfmt
run: cargo fmt --all -- --check
Loading

0 comments on commit 5b4dfe8

Please sign in to comment.