Skip to content

Commit

Permalink
add aggregate workflow for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanzele committed Jun 28, 2023
1 parent 4d4082b commit 8984404
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
pull_request:
schedule:
# Run daily at 01:34, so we get notified if CI is broken before a pull request
# is submitted.
- cron: "34 1 * * *"

permissions:
contents: read
pull-requests: read
checks: write

jobs:
lint:
uses: ./.github/workflows/lint.yml
test:
uses: ./.github/workflows/test.yml
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: "Lint"

on:
push:
branches:
- master
pull_request:
workflow_call:

permissions:
contents: read
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Code Build and Tests

on:
push:
branches: [master]
pull_request:
workflow_call:

permissions:
contents: read
Expand Down

0 comments on commit 8984404

Please sign in to comment.