Skip to content

Commit

Permalink
Merge pull request #14 from abhishek72850/separate-test-and-codecov-u…
Browse files Browse the repository at this point in the history
…pload-workflow

Created 2 separate workflows
  • Loading branch information
abhishek72850 committed Oct 7, 2023
2 parents a971f09 + de65a2f commit 0003e99
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Code Coverage Upload

on:
push:
branches:
- master

jobs:
upload-codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Upload Code Coverage
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
10 changes: 1 addition & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Run Tests

on: [push]

Expand All @@ -20,11 +20,3 @@ jobs:
sublime-text-version: ${{ matrix.st-version }}
package-name: ${{ env.PACKAGE }}
- uses: SublimeText/UnitTesting/actions/run-tests@v1
- name: Upload Code Coverage
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml

0 comments on commit 0003e99

Please sign in to comment.