From 14663da022e32dad1e708a526112701d9ac191d3 Mon Sep 17 00:00:00 2001 From: pablo Date: Mon, 14 Oct 2024 09:22:26 +0300 Subject: [PATCH] fix build --- .github/workflows/ci.yml | 18 +++----- .github/workflows/ci2.yml | 93 --------------------------------------- 2 files changed, 5 insertions(+), 106 deletions(-) delete mode 100644 .github/workflows/ci2.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 249ed0cb..c4d3ce52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,24 +31,16 @@ jobs: repository: status-im/status-go path: status-go - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.21' + - name: Set up Nix + uses: cachix/install-nix-action@v27 - - name: Install dependencies + - name: Build status-cli run: | cd status-go - go mod tidy - go mod vendor - - - name: Build status-cli binary - run: | - cd status-go/cmd/status-cli - go build + make status-cli - name: Copy status-cli binary to test repo root - run: cp status-go/cmd/status-cli/status-cli . + run: cp status-go/build/bin/status-cli . - name: Run tests run: | diff --git a/.github/workflows/ci2.yml b/.github/workflows/ci2.yml deleted file mode 100644 index 0bf3ad7f..00000000 --- a/.github/workflows/ci2.yml +++ /dev/null @@ -1,93 +0,0 @@ -name: CI2 - -on: - workflow_dispatch: - -env: - FORCE_COLOR: "1" - -jobs: - - tests: - name: tests - runs-on: ubuntu-latest - timeout-minutes: 120 - steps: - - - uses: actions/checkout@v4 - - - uses: actions/setup-python@v4 - with: - python-version: '3.12' - cache: 'pip' - - - run: pip install -r requirements.txt - - - name: Checkout status-go repository - uses: actions/checkout@v4 - with: - repository: status-im/status-go - path: status-go - - - name: Set up Nix - uses: cachix/install-nix-action@v27 - - - name: Build status-cli - run: | - cd status-go - make status-cli - - - name: Copy status-cli binary to test repo root - run: cp status-go/build/bin/status-cli . - - - name: Run tests - run: | - pytest tests/ --alluredir=allure-results - - - name: Get allure history - if: always() - uses: actions/checkout@v4 - with: - ref: gh-pages - path: gh-pages - - - name: Setup allure report - uses: simple-elf/allure-report-action@master - if: always() - id: allure-report - with: - allure_results: allure-results - gh_pages: gh-pages - allure_history: allure-history - keep_reports: 30 - - - name: Deploy report to Github Pages - uses: peaceiris/actions-gh-pages@v3 - if: always() - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: gh-pages - publish_dir: allure-history - - - name: Create job summary - if: always() - env: - JOB_STATUS: ${{ job.status }} - run: | - echo "## Run Information" >> $GITHUB_STEP_SUMMARY - echo "- **Event**: ${{ github.event_name }}" >> $GITHUB_STEP_SUMMARY - echo "- **Actor**: ${{ github.actor }}" >> $GITHUB_STEP_SUMMARY - echo "## Test Results" >> $GITHUB_STEP_SUMMARY - echo "Allure report will be available at: https://status-im.github.io/status-cli-tests/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY - { - echo 'JOB_SUMMARY<> $GITHUB_ENV - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v4 - with: - name: test-results - path: test_results