Skip to content

Commit

Permalink
Update ci task
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Jun 19, 2024
1 parent 8f6404d commit 9e265ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 41 deletions.
35 changes: 2 additions & 33 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand All @@ -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'
10 changes: 2 additions & 8 deletions .github/workflows/build.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'name': 'build'
'name': 'test'

'env':
'GO_VERSION': '1.22.4'
Expand All @@ -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':
Expand Down Expand Up @@ -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'

0 comments on commit 9e265ff

Please sign in to comment.