bump common for pyroscope support #2127
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
| # Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - main | |
| pull_request: | |
| name: contracts | |
| jobs: | |
| contracts_unit_tests: | |
| name: Contract Unit Testing | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| extra_nix_config: "sandbox = false" | |
| - name: Cache Nix | |
| uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14 | |
| with: | |
| name: chainlink-cosmos | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| # TODO: We probably want cachix enabled heres | |
| # https://github.com/smartcontractkit/chainlink-cosmos/issues/15 | |
| - name: Run unit tests | |
| run: nix develop --option fallback true -c cargo unit-test --locked | |
| env: | |
| RUST_BACKTRACE: 1 | |
| - name: Compile WASM contract | |
| run: nix develop --option fallback true -c cargo wasm --locked | |
| env: | |
| RUSTFLAGS: "-C link-arg=-s" | |
| contracts_lint: | |
| name: Contracts Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| extra_nix_config: "sandbox = false" | |
| - name: Cache Nix | |
| uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14 | |
| with: | |
| name: chainlink-cosmos | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| - name: Avoid using non-nix rust binaries | |
| run: rm -rf ~/.cargo/bin | |
| - name: Run cargo fmt | |
| run: nix develop --option fallback true -c cargo fmt --all -- --check | |
| - name: Run cargo check | |
| run: nix develop --option fallback true -c cargo check | |
| env: | |
| RUSTFLAGS: "--check-cfg=cfg(tarpaulin_include)" | |
| - name: Run cargo clippy | |
| run: nix develop --option fallback true -c cargo clippy -- -D warnings | |
| env: | |
| RUSTFLAGS: "--check-cfg=cfg(tarpaulin_include)" | |
| # TODO: Add schema checks | |
| # https://github.com/smartcontractkit/chainlink-terra/issues/17 |