Skip to content

Commit

Permalink
Try to run outdated only for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
abogoyavlensky committed Jun 3, 2024
1 parent 63afd6e commit 68c273e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/checks.yaml → .github/workflows/_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Checks


on:
pull_request:
branches: [ master ]
workflow_call:

jobs:
Expand Down Expand Up @@ -40,15 +38,6 @@ jobs:
- name: Lint
run: make lint-init && make lint

# TODO: remove!
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Test
# run: docker-compose run --rm test bash -c "make deps && make test-ci"

test:
runs-on: ubuntu-latest
needs: [ deps ]
Expand All @@ -61,12 +50,3 @@ jobs:
run: |
docker-compose up -d test-postgres
make test-ci
outdated:
runs-on: ubuntu-latest
needs: [ deps ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/restore-deps
- name: Outdated deps
run: make outdated
19 changes: 19 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Checks


on:
pull_request:
branches: [ master ]

jobs:
checks:
uses: ./.github/workflows/_checks.yaml

outdated:
runs-on: ubuntu-latest
needs: [ deps ]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/restore-deps
- name: Outdated deps
run: make outdated

0 comments on commit 68c273e

Please sign in to comment.