fix: update workflow
This commit is contained in:
@@ -9,6 +9,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
id: lint
|
||||||
name: lint
|
name: lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -25,15 +26,19 @@ jobs:
|
|||||||
- name: Run lint-fix
|
- name: Run lint-fix
|
||||||
run: npm run lint-fix
|
run: npm run lint-fix
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
|
id: commit
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
commit: --no-verify
|
commit: --no-verify
|
||||||
message: 'fix: resolve linter errors'
|
message: 'fix: resolve linter errors'
|
||||||
committer_name: GitHub Actions
|
committer_name: GitHub Actions
|
||||||
committer_email: actions@github.com
|
committer_email: actions@github.com
|
||||||
|
outputs:
|
||||||
|
committed: ${{ steps.commit.committed }}
|
||||||
test:
|
test:
|
||||||
if: ${{ jobs.lint.committed == false }}
|
if: ${{ jobs.lint.outputs.committed == false }}
|
||||||
needs: lint
|
needs: lint
|
||||||
|
id: test
|
||||||
name: test
|
name: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
@@ -83,6 +88,7 @@ jobs:
|
|||||||
TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }}
|
TEST_TEXT_FIELD: ${{ vars.TEST_TEXT_FIELD }}
|
||||||
publish_test_coverage:
|
publish_test_coverage:
|
||||||
needs: test
|
needs: test
|
||||||
|
id: publish_test_coverage
|
||||||
name: publish_test_coverage
|
name: publish_test_coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user