Skip to content

Commit d665013

Browse files
committed
chore: Enabled triggering test and lint on push and pull request actions. (refs #5)
1 parent dbb7d74 commit d665013

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/tests-run.yml renamed to .github/workflows/test-and-lint.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
name: Run Automated Tests
1+
name: Test and Lint
22
on:
3-
issue_comment:
4-
types: [created]
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
57
jobs:
6-
run_tests:
7-
if: |
8-
github.event_name == 'issue_comment' &&
9-
(github.event.comment.author_association == 'member' || github.event.comment.author_association == 'owner') &&
10-
startsWith(github.event.comment.body, '@tests run')
8+
test_and_lint:
119
runs-on: ubuntu-latest
1210
steps:
1311
- uses: actions/checkout@v2
@@ -27,6 +25,7 @@ jobs:
2725
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2826
git config --global user.name "github-actions[bot]"
2927
- run: yarn test
28+
- run: yarn lint
3029
env:
3130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3231
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Next checks whether the image url which loader generates has the exact value whi
170170

171171
**Fix:** Ignore the warning for now.
172172

173-
[test-status-img]: https://github.com/uploadcare/nextjs-loader/actions/workflows/tests-run.yml/badge.svg
173+
[test-status-img]: https://github.com/uploadcare/nextjs-loader/.github/workflows/test-and-lint.yml/badge.svg
174174
[npm-img]: https://img.shields.io/npm/v/@uploadcare/nextjs-loader.svg
175175
[npm-link]: https://www.npmjs.com/package/@uploadcare/nextjs-loader
176176
[stackblitz-image]: https://developer.stackblitz.com/img/open_in_stackblitz.svg

0 commit comments

Comments
 (0)