Skip to content

fix: linter warning #77

fix: linter warning

fix: linter warning #77

Workflow file for this run

name: Run Tests
on:
push:
jobs:
run-tests:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: User Node.js LTS
uses: actions/setup-node@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.2.4
with:
run_install: false
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build the packages
run: pnpm build
- name: Build Failed
if: ${{ failure() }}
uses: actions/github-script@v6
with:
script: |
const { data: pullRequestData } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
owner: context.repo.owner,
repo: context.repo.repo,
commit_sha: context.payload.after
})
if(pullRequestData[0]){
await github.rest.issues.createComment({
issue_number: pullRequestData[0].number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `#### ❌ Build failed:
`
})
} else {
throw new Error('Pull request data not found')
}
- name: Run Tests
run: pnpm test