Skip to content

Commit

Permalink
feat: adding frontend linting
Browse files Browse the repository at this point in the history
Signed-off-by: Diogenes Fernandes <[email protected]>
  • Loading branch information
diofeher committed Dec 31, 2024
1 parent f33c8c2 commit eb009ab
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/frontend-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
paths:
- '*.tsx?'

jobs:
frontend:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Run linting
uses: pnpm run lint
13 changes: 12 additions & 1 deletion .github/workflows/index.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Index (cron)
permissions: {}
permissions:
actions: write
on:
schedule:
- cron: "*/15 * * * *" # Run every 15 minutes
Expand Down Expand Up @@ -43,3 +44,13 @@ jobs:
env:
PG_CONNECTION_STRING: ${{secrets.PG_CONNECTION_STRING}}
run: go run ./
- name: Keep Cron Alive # related to https://github.com/opentofu/registry-ui/issues/259
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.actions.enableWorkflow({
owner: github.repository_owner,
repo: github.event.repository.name,
workflow_id: github.workflow_ref,
})

0 comments on commit eb009ab

Please sign in to comment.