From 9e265ffd688192b613a75b9fdff9fb7143912e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ho=C3=A0ng=20Rio?= Date: Wed, 19 Jun 2024 08:20:23 +0700 Subject: [PATCH] Update ci task --- .github/workflows/lint.yml | 35 ++--------------------- .github/workflows/{build.yml => test.yml} | 10 ++----- 2 files changed, 4 insertions(+), 41 deletions(-) rename .github/workflows/{build.yml => test.yml} (84%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c4dca55e72a..277f7b9d44c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ 'pull_request': 'concurrency': - 'group': ${{ github.event.head_commit.id }} + 'group': lint_${{ github.event.head_commit.id }} 'cancel-in-progress': true 'jobs': @@ -35,35 +35,4 @@ - 'name': 'Install modules' 'run': 'npm --prefix="./client" ci' - 'name': 'Run ESLint' - 'run': 'npm --prefix="./client" run lint' - - 'notify': - 'needs': - - 'go-lint' - - 'eslint' - # Secrets are not passed to workflows that are triggered by a pull request - # from a fork. - # - # Use always() to signal to the runner that this job must run even if the - # previous ones failed. - 'if': - ${{ - always() && - github.repository_owner == 'AdguardTeam' && - ( - github.event_name == 'push' || - github.event.pull_request.head.repo.full_name == github.repository - ) - }} - 'runs-on': 'ubuntu-latest' - 'steps': - - 'name': 'Conclusion' - 'uses': 'technote-space/workflow-conclusion-action@v1' - - 'name': 'Send Slack notif' - 'uses': '8398a7/action-slack@v3' - 'with': - 'status': '${{ env.WORKFLOW_CONCLUSION }}' - 'fields': 'repo, message, commit, author, workflow' - 'env': - 'GITHUB_TOKEN': '${{ secrets.GITHUB_TOKEN }}' - 'SLACK_WEBHOOK_URL': '${{ secrets.SLACK_WEBHOOK_URL }}' + 'run': 'npm --prefix="./client" run lint' \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/test.yml similarity index 84% rename from .github/workflows/build.yml rename to .github/workflows/test.yml index 4c3188ef6f5..0d8551d71a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -'name': 'build' +'name': 'test' 'env': 'GO_VERSION': '1.22.4' @@ -13,7 +13,7 @@ 'pull_request': 'concurrency': - 'group': ${{ github.event.head_commit.id }} + 'group': test_${{ github.event.head_commit.id }} 'cancel-in-progress': true 'jobs': @@ -60,9 +60,3 @@ - 'name': 'Run tests' 'shell': 'bash' 'run': 'make VERBOSE=1 deps test go-bench go-fuzz' - - 'name': 'Upload coverage' - 'uses': 'codecov/codecov-action@v1' - 'if': "success() && matrix.os == 'ubuntu-latest'" - 'with': - 'token': '${{ secrets.CODECOV_TOKEN }}' - 'file': './coverage.txt'