From 1833b14e25e3bb5ab74d4920497d57b4911421ee Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 23 Jan 2024 18:02:48 +0000 Subject: [PATCH] Disable .github workflows. (#141) Reviewed-on: https://git.vdb.to/cerc-io/laconicd/pulls/141 Co-authored-by: Thomas E Lackey Co-committed-by: Thomas E Lackey --- .github/ISSUE_TEMPLATE/bug-report.md | 18 --- .github/ISSUE_TEMPLATE/feature-request.md | 15 -- .github/PULL_REQUEST_TEMPLATE.md | 34 ----- .github/labeler.yml | 37 ----- .github/workflows/build.yml | 33 ---- .github/workflows/codeql-analysis.yml | 84 ----------- .github/workflows/dependencies.yml | 29 ---- .github/workflows/deploy-contract.yml | 38 ----- .github/workflows/docker-image.yml | 28 ---- .github/workflows/goreleaser.yml | 28 ---- .github/workflows/issues-notion-sync.yml | 29 ---- .github/workflows/labeler.yml | 14 -- .github/workflows/lint.yml | 52 ------- .github/workflows/proto.yml | 28 ---- .github/workflows/security.yml | 37 ----- .github/workflows/semgrep.yml | 45 ------ .github/workflows/test.yml | 175 ---------------------- 17 files changed, 724 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug-report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature-request.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/labeler.yml delete mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/dependencies.yml delete mode 100644 .github/workflows/deploy-contract.yml delete mode 100644 .github/workflows/docker-image.yml delete mode 100644 .github/workflows/goreleaser.yml delete mode 100644 .github/workflows/issues-notion-sync.yml delete mode 100644 .github/workflows/labeler.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/proto.yml delete mode 100644 .github/workflows/security.yml delete mode 100644 .github/workflows/semgrep.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md deleted file mode 100644 index 34150f70..00000000 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: Bug Report -about: create a bug report ---- - -__System info:__ [Include Ethermint commit, operating system name, and other relevant details] - -__Steps to reproduce:__ - -1. [First Step] -2. [Second Step] -3. [and so on...] - -__Expected behavior:__ [What you expected to happen] - -__Actual behavior:__ [What actually happened] - -__Additional info:__ [Include gist of relevant config, logs, etc.] diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md deleted file mode 100644 index 8095f8b9..00000000 --- a/.github/ISSUE_TEMPLATE/feature-request.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: Feature request -about: Opening a feature request kicks off a discussion - ---- - -__Proposal:__ [Description of the feature] - -__Current behavior:__ [What currently happens] - -__Desired behavior:__ [What you would like to happen] - -__Use case:__ [Why is this important (helps with prioritizing requests)] - -Requests may be closed if we're not actively planning to work on them. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 6dd37f7f..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,34 +0,0 @@ - - -Closes: #XXX - -## Description - - - -______ - -For contributor use: - -- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) -- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. -- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md). -- [ ] Wrote unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) -- [ ] Updated relevant documentation (`docs/`) or specification (`x//spec/`) -- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code). -- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md` -- [ ] Re-reviewed `Files changed` in the Github PR explorer - -______ - -For admin use: - -- [ ] Added appropriate labels to PR (ex. `WIP`, `R4R`, `docs`, etc) -- [ ] Reviewers assigned -- [ ] Squashed all commits, uses message "Merge pull request #XYZ: [title]" ([coding standards](https://github.com/tendermint/coding/blob/master/README.md#merging-a-pr)) diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 039e8090..00000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,37 +0,0 @@ -"C:Crypto": - - crypto/**/* -"C:Encoding": - - encoding/**/* -"C:JSON-RPC": - - ethereum/rpc/**/* -"C:Proto": - - proto/**/* - - third_party/**/* - - /**/*.pb.go - - /**/*.pb.gw.go -"C:Types": - - types/**/* -"C:x/evm": - - x/evm/**/*/ -"Type: Build": - - Makefile - - Dockerfile - - docker-compose.yml - - scripts/* - - config.yml -"Type: CI": - - .github/**/*.yml - - buf.yaml - - .mergify.yml - - .golangci.yml -"C:CLI": - - client/**/* - - x/*/client/**/* -"Type: Tests": - - tests/**/* - - /**/*/*_test.go -"Type: Docs": - - docs/**/* - - x/*/spec/**/* -"Type: ADR": - - docs/architecture/**/* \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 6149e30b..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Build -on: - pull_request: - branches: - - main - -jobs: - cleanup-runs: - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - uses: technote-space/get-diff-action@v6.1.2 - id: git_diff - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - run: | - make build - if: env.GIT_DIFF diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index b38061c7..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,84 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ main ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ main ] - schedule: - - cron: '37 21 * * 4' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'go' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/**.sol - **/**.go - **/**.ts - **/**.js - go.mod - go.sum - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality - if: env.GIT_DIFF - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - if: env.GIT_DIFF - - # ℹ️ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - if: env.GIT_DIFF diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml deleted file mode 100644 index 6c2fe470..00000000 --- a/.github/workflows/dependencies.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: "Dependency Review" -on: pull_request - -permissions: - contents: read - -jobs: - dependency-review: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - name: "Checkout Repository" - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - name: "Dependency Review" - uses: actions/dependency-review-action@v3 - if: env.GIT_DIFF -# TODO: https://git.vdb.to/cerc-io/laconicd/issues/115 -# - name: "Go vulnerability check" -# run: make vulncheck -# if: env.GIT_DIFF diff --git a/.github/workflows/deploy-contract.yml b/.github/workflows/deploy-contract.yml deleted file mode 100644 index dcd0bbb7..00000000 --- a/.github/workflows/deploy-contract.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Deploy Contract -on: - pull_request: - branches: - - main - -jobs: - cleanup-runs: - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" - - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: '12.x' - - name: Install dependencies - run: npm install - - uses: technote-space/get-diff-action@v6.1.2 - id: git_diff - with: - PATTERNS: | - **/**.sol - **/**.go - go.mod - go.sum - - name: Test contract - run: | - sudo make contract-tools - sudo make test-contract - if: env.GIT_DIFF diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index c1172190..00000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Publish on release -on: - release: - types: [published] -jobs: - build: - name: Run docker build and publish - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Run docker build - run: docker build -t cerc-io/laconicd -f Dockerfile . - - name: Get the version - id: vars - run: | - echo ::set-output name=sha::$(echo ${GITHUB_SHA:0:7}) - echo ::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/}) - - name: Tag docker image - run: docker tag cerc-io/laconicd git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.sha}} - - name: Tag docker image - run: docker tag git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.sha}} git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.tag}} - - name: Docker Login - run: echo ${{ secrets.GITEA_TOKEN }} | docker login https://git.vdb.to -u cerccicd --password-stdin - - name: Docker Push - run: docker push git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.sha}} - - name: Docker Push TAGGED - run: docker push git.vdb.to/cerc-io/laconicd/laconicd:${{steps.vars.outputs.tag}} - diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml deleted file mode 100644 index 6429f9a5..00000000 --- a/.github/workflows/goreleaser.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: goreleaser - -on: - push: - tags: - - "v*.*.*" -jobs: - goreleaser: - runs-on: ubuntu-latest - environment: release - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - name: release dry run - run: make release-dry-run - - name: setup release environment - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: |- - echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env - - name: release publish - run: make release diff --git a/.github/workflows/issues-notion-sync.yml b/.github/workflows/issues-notion-sync.yml deleted file mode 100644 index 551362b0..00000000 --- a/.github/workflows/issues-notion-sync.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Notion Sync - -on: - workflow_dispatch: - issues: - types: - [ - opened, - edited, - labeled, - unlabeled, - assigned, - unassigned, - milestoned, - demilestoned, - reopened, - closed, - ] - -jobs: - notion_job: - runs-on: ubuntu-latest - name: Add GitHub Issues to Notion - steps: - - name: Add GitHub Issues to Notion - uses: vulcanize/notion-github-action@v1.2.4-issueid - with: - notion-token: ${{ secrets.NOTION_TOKEN }} - notion-db: ${{ secrets.NOTION_DATABASE }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index a897fd5d..00000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: "Pull Request Labeler" -on: - pull_request: - push: - branches: - - main - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index b79a434d..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Lint -# Lint runs golangci-lint over the entire ethermint repository This workflow is -# run on every pull request and push to main The `golangci` will pass without -# running if no *.{go, mod, sum} files have been changed. -on: - pull_request: - push: - branches: - - main -jobs: - golangci: - name: Run golangci-lint - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - # Required: setup-go, for all versions v3.0.0+ of golangci-lint - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - uses: golangci/golangci-lint-action@v3.3.1 - with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: latest - args: --timeout 10m - github-token: ${{ secrets.github_token }} - # Check only if there are differences in the source code - if: env.GIT_DIFF - - python-lint: - name: Run flake8 on python integration tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v20 - - uses: cachix/cachix-action@v12 - with: - name: ethermint - - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/**.py - - run: | - nix-shell -I nixpkgs=./nix -p test-env --run "make lint-py" - if: env.GIT_DIFF \ No newline at end of file diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml deleted file mode 100644 index 86175a90..00000000 --- a/.github/workflows/proto.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Protobuf -# Protobuf runs buf (https://buf.build/) lint and check-breakage -# This workflow is only run when a .proto file has been changed -on: - pull_request: - paths: - - "proto/**" - -jobs: - lint: - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - uses: actions/checkout@v3 - - uses: bufbuild/buf-setup-action@v1.9.0 - - uses: bufbuild/buf-lint-action@v1 - with: - input: "proto" - - break-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: bufbuild/buf-setup-action@v1.9.0 - - uses: bufbuild/buf-breaking-action@v1 - with: - input: "proto" - against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto" diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml deleted file mode 100644 index 359fa1a6..00000000 --- a/.github/workflows/security.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Run Gosec -on: - pull_request: - push: - branches: - - main - -jobs: - Gosec: - permissions: - security-events: write - - runs-on: ubuntu-latest - env: - GO111MODULE: on - steps: - - name: Checkout Source - uses: actions/checkout@v3 - - name: Get Diff - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/*.go - go.mod - go.sum - - name: Run Gosec Security Scanner - uses: cosmos/gosec@master - with: - # we let the report trigger content trigger a failure using the GitHub Security features. - args: '-no-fail -fmt sarif -out results.sarif -exclude=G701,G703 ./...' - if: "env.GIT_DIFF_FILTERED != ''" - - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@v2 - with: - # Path to SARIF file relative to the root of the repository - sarif_file: results.sarif - if: "env.GIT_DIFF_FILTERED != ''" diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml deleted file mode 100644 index 98922a15..00000000 --- a/.github/workflows/semgrep.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Semgrep -on: - # Scan changed files in PRs, block on new issues only (existing issues ignored) - pull_request: {} - push: - branches: - - main - paths: - - .github/workflows/semgrep.yml - schedule: - - cron: '0 0 * * 0' -jobs: - # Update from: https://semgrep.dev/docs/semgrep-ci/sample-ci-configs/#github-actions - semgrep: - name: Scan - runs-on: ubuntu-latest - container: - image: returntocorp/semgrep - if: (github.actor != 'dependabot[bot]') - steps: - - name: Permission issue fix - run: git config --global --add safe.directory /__w/laconicd/laconicd - - uses: actions/checkout@v3 - - name: Get Diff - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/*.go - **/*.js - **/*.ts - **/*.sol - go.mod - go.sum - - uses: actions/checkout@v3 - - run: semgrep scan --sarif --output=semgrep.sarif --config auto - env: - # Upload findings to GitHub Advanced Security Dashboard [step 1/2] - SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} - if: "env.GIT_DIFF_FILTERED != ''" - # Upload findings to GitHub Advanced Security Dashboard [step 2/2] - - name: Upload SARIF file - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: semgrep.sarif - if: "env.GIT_DIFF_FILTERED != ''" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 7dacb807..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,175 +0,0 @@ -name: Tests -on: - pull_request: - push: - branches: - - main - - release/** - -jobs: - cleanup-runs: - runs-on: ubuntu-latest - steps: - - uses: rokroskar/workflow-run-cleanup-action@master - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" - - test-unit-cover: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - name: Test and Create Coverage Report - run: | - make test-unit-cover - if: env.GIT_DIFF - - uses: codecov/codecov-action@v3 - with: - file: ./coverage.txt - fail_ci_if_error: false - if: env.GIT_DIFF - - test-importer: - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - id: git_diff - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - name: test-importer - run: | - make test-import - if: env.GIT_DIFF - - test-rpc: - runs-on: ubuntu-latest - timeout-minutes: 15 - steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.19 - check-latest: true - - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6.1.2 - with: - PATTERNS: | - **/**.sol - **/**.go - go.mod - go.sum - - name: Test rpc endpoint - run: | - make test-rpc - if: env.GIT_DIFF - - sdk_tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Checkout laconic-sdk - uses: actions/checkout@v3 - with: - path: "./laconic-sdk/" - repository: cerc-io/laconic-sdk - fetch-depth: 0 - ref: main - - name: Environment - run: ls -tlh && env - - - name: Build laconicd container - working-directory: tests/sdk_tests - run: ./build-laconicd-container.sh - - name: Build laconic-sdk container - working-directory: laconic-sdk - run: ./scripts/build-sdk-test-container.sh - - - name: Start containers - working-directory: tests/sdk_tests - run: docker compose up -d - - name: Run tests - working-directory: tests/sdk_tests - run: ./run-tests.sh - - - name: Start containers (auctions enabled) - working-directory: tests/sdk_tests - env: - TEST_AUCTION_ENABLED: true - run: docker compose up -d - - name: Run auction tests - working-directory: tests/sdk_tests - run: ./run-tests.sh test:auctions - - - name: Start containers (expiry enabled) - working-directory: tests/sdk_tests - env: - TEST_REGISTRY_EXPIRY: true - run: docker compose up -d - - name: Run nameservice expiry tests - working-directory: tests/sdk_tests - run: ./run-tests.sh test:nameservice-expiry - - # integration_tests: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: cachix/install-nix-action@v18 - # - uses: cachix/cachix-action@v12 - # with: - # name: ethermint - # signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" - # - uses: technote-space/get-diff-action@v6.1.2 - # with: - # PATTERNS: | - # **/**.sol - # **/**.go - # go.mod - # go.sum - # tests/integration_tests/** - # - name: Run integration tests - # run: make run-integration-tests - # if: env.GIT_DIFF - # - name: 'Tar debug files' - # if: failure() - # run: tar cfz debug_files.tar.gz -C /tmp/pytest-of-runner . - # - uses: actions/upload-artifact@v3 - # if: failure() - # with: - # name: debug-files - # path: debug_files.tar.gz - # if-no-files-found: ignore - - # upload-cache: - # if: github.event_name == 'push' - # needs: ["integration_tests"] - # strategy: - # matrix: - # os: [macos-latest] - # runs-on: ${{ matrix.os }} - # steps: - # - uses: actions/checkout@v2 - # - uses: cachix/install-nix-action@v18 - # - uses: cachix/cachix-action@v12 - # with: - # name: ethermint - # signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" - # - name: 'instantiate integration test env' - # run: nix-store -r "$(nix-instantiate tests/integration_tests/shell.nix)"