Skip to content

Commit

Permalink
run pre-commit tests on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro0508 committed Jan 5, 2024
1 parent c245888 commit 0dce653
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
name: main

on:
pull_request:
branches: ['*']
push:
branches: ['develop', 'staging', 'prod' ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]

deploy:
if: ${{ github.event_name == 'push' }}
# self hosted runner labels are setup in github to match branch names
runs-on: [self-hosted, "${{ github.ref_name }}"]
# variables in context environments are setup in github to match branch names
Expand Down

0 comments on commit 0dce653

Please sign in to comment.