Skip to content

Commit ec64e16

Browse files
authored
Split off lib check (#260)
1 parent f747ab7 commit ec64e16

File tree

3 files changed

+39
-16
lines changed

3 files changed

+39
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ jobs:
4848
- name: Upload Coverage to Codecov
4949
uses: codecov/codecov-action@v3
5050

51-
lib-check:
52-
name: Check libraries
53-
runs-on: ubuntu-latest
54-
timeout-minutes: 5
55-
steps:
56-
- name: Checkout
57-
uses: actions/checkout@v3
58-
with:
59-
fetch-depth: 0
60-
- name: Check libs
61-
uses: canonical/charming-actions/[email protected]
62-
with:
63-
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
64-
github-token: "${{ secrets.GITHUB_TOKEN }}"
65-
6651
build:
6752
name: Build charms
6853
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v2
@@ -101,7 +86,6 @@ jobs:
10186
free-disk-space: true
10287
name: ${{ matrix.tox-environments }} | ${{ matrix.agent-versions }}
10388
needs:
104-
- lib-check
10589
- lint
10690
- unit-test
10791
- build

.github/workflows/lib-check.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2022 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Check libs
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
on:
10+
pull_request:
11+
paths-ignore:
12+
- '.gitignore'
13+
- '.jujuignore'
14+
- 'LICENSE'
15+
- '**.md'
16+
- 'renovate.json'
17+
schedule:
18+
- cron: '53 0 * * *' # Daily at 00:53 UTC
19+
# Triggered on push to branch "main" by .github/workflows/release.yaml
20+
workflow_call:
21+
22+
jobs:
23+
lib-check:
24+
name: Check libraries
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 5
27+
if: ${{ github.event.pull_request.head.repo.full_name == 'canonical/postgresql-operator' }}
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
31+
with:
32+
fetch-depth: 0
33+
- name: Check libs
34+
uses: canonical/charming-actions/[email protected]
35+
with:
36+
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
37+
github-token: "${{ secrets.GITHUB_TOKEN }}"
38+

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- poetry.lock
1414
- pyproject.toml
1515
- '.github/workflows/ci.yaml'
16+
- '.github/workflows/lib-check.yaml'
1617

1718
jobs:
1819
ci-tests:

0 commit comments

Comments
 (0)