-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,40 +5,40 @@ concurrency: | |
cancel-in-progress: true | ||
on: | ||
push: | ||
branches: [master, staging, sprint*] | ||
branches: [ master, staging, sprint* ] | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
repo_snapshots_branch: | ||
description: "branch of repo-snapshots to derive images and branches from." | ||
default: "current-sprint" | ||
description: 'branch of repo-snapshots to derive images and branches from.' | ||
default: 'current-sprint' | ||
required: true | ||
existing_network: | ||
description: "(OPTIONAL): *EXISTING NETWORK* to run system tests against *INSTEAD OF* deploying a new network. [example: dev.0chain.net]" | ||
default: "" | ||
description: '(OPTIONAL): *EXISTING NETWORK* to run system tests against *INSTEAD OF* deploying a new network. [example: dev.0chain.net]' | ||
default: '' | ||
required: false | ||
test_file_filter: | ||
description: "Comma separated list of test files to run (eg. zwalletcli_send_and_balance_test.go). If supplied, the PR will NOT be notified of the test result" | ||
default: "" | ||
description: 'Comma separated list of test files to run (eg. zwalletcli_send_and_balance_test.go). If supplied, the PR will NOT be notified of the test result' | ||
default: '' | ||
required: false | ||
run_smoke_tests: | ||
description: "Only run smoke tests (subset of system tests for fast feedback)" | ||
default: "false" | ||
description: 'Only run smoke tests (subset of system tests for fast feedback)' | ||
default: 'false' | ||
required: false | ||
|
||
jobs: | ||
golangci: | ||
# if: github.event_name == 'push' | ||
name: "lint" | ||
runs-on: [arc-runner] | ||
runs-on: [ arc-runner ] | ||
steps: | ||
- name: Install Packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.21" | ||
go-version: '1.21' | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
|
@@ -50,7 +50,7 @@ jobs: | |
|
||
system-tests: | ||
name: "System Tests" | ||
runs-on: [tests-suite] | ||
runs-on: [ tests-suite ] | ||
timeout-minutes: 360 | ||
steps: | ||
- name: "Get current PR" | ||
|
@@ -94,11 +94,11 @@ jobs: | |
echo RUN_SMOKE_TESTS=false >> $GITHUB_ENV | ||
fi | ||
- name: "Setup jq" | ||
- name: 'Setup jq' | ||
uses: dcarbone/[email protected] | ||
with: | ||
version: "1.7" | ||
force: "false" | ||
version: '1.7' | ||
force: 'false' | ||
|
||
- name: "Create Tenderly virtual testnet" | ||
run: | | ||
|
@@ -137,7 +137,7 @@ jobs: | |
deploy_report_page: true | ||
archive_results: true | ||
run_flaky_tests: true | ||
run_api_system_tests: false | ||
run_api_system_tests: true | ||
run_cli_system_tests: true | ||
run_tokenomics_system_tests: false | ||
test_file_filter: ${{ env.TEST_FILE_FILTER }} | ||
|
@@ -171,7 +171,7 @@ jobs: | |
set-build-conclusion: | ||
name: "Set build conclusion" | ||
if: ${{ always() && github.ref == 'refs/heads/master' && github.event_name != 'workflow_dispatch' }} | ||
needs: [golangci, system-tests] | ||
needs: [ golangci, system-tests ] | ||
runs-on: self-hosted | ||
steps: | ||
- uses: technote-space/workflow-conclusion-action@v3 | ||
|
@@ -184,7 +184,7 @@ jobs: | |
uses: Sibz/github-status-action@v1 | ||
with: | ||
authToken: ${{secrets.SVC_ACCOUNT_SECRET}} | ||
context: "0Chain System Tests CI" | ||
context: '0Chain System Tests CI' | ||
description: "Build status: ${{ env.WORKFLOW_CONCLUSION }}" | ||
state: ${{ env.WORKFLOW_CONCLUSION }} | ||
sha: ${{github.event.pull_request.head.sha || github.sha}} |