Skip to content

Commit b62226b

Browse files
authored
Ci tweaks, automatically label config changes (#624)
* Combine CI workflows into one workflow file * Apply configuration label to PRs made against config files with Github's `labeler`
1 parent 83e71bb commit b62226b

File tree

5 files changed

+43
-52
lines changed

5 files changed

+43
-52
lines changed

.github/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
configuration:
2+
- config/*

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Run CI checks
2+
3+
on: pull_request
4+
5+
jobs:
6+
run_lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Install poetry
11+
run: pipx install poetry
12+
- uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.11"
15+
cache: "poetry"
16+
- name: Install dependencies
17+
run: poetry install
18+
- run: bin/lint.sh
19+
run_test:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Install poetry
24+
run: pipx install poetry
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.11"
28+
cache: "poetry"
29+
- name: Install dependencies
30+
run: poetry install
31+
- name: Run tests
32+
run: bin/test.sh
33+
review-dependabot-pr:
34+
permissions:
35+
contents: write
36+
pull-requests: write
37+
runs-on: ubuntu-latest
38+
if: ${{ github.actor == 'dependabot[bot]' }}
39+
steps:
40+
- name: Enable Dependabot automation
41+
uses: mozilla/syseng-pod/actions/dependabot-automerge@main

.github/workflows/dependabot-automerge.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)