Skip to content

Commit

Permalink
Merge pull request #51 from hartwork/improve-ci
Browse files Browse the repository at this point in the history
Improve CI
  • Loading branch information
hartwork authored Apr 21, 2024
2 parents 3afb70b + 43b66a3 commit bed535d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- cron: '0 2 * * 5' # Every Friday at 2am
workflow_dispatch:

# Drop permissions to minimum, for security
permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit-detect-outdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ name: Detect outdated pre-commit hooks
on:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:

# NOTE: This will drop all permissions from GITHUB_TOKEN except metadata read,
# and then (re)add the ones listed below:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@

name: Run pre-commit

# Drop permissions to minimum, for security
permissions:
contents: read

on:
- pull_request
- push
pull_request:
push:
schedule:
- cron: '0 3 * * 5' # Every Friday at 3am
workflow_dispatch:

jobs:
pre-commit:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@

name: Run the test suite

# Drop permissions to minimum, for security
permissions:
contents: read

on:
- pull_request
- push
pull_request:
push:
schedule:
- cron: '0 3 * * 5' # Every Friday at 3am
workflow_dispatch:

jobs:
run-tests:
Expand Down

0 comments on commit bed535d

Please sign in to comment.