Skip to content

Commit cc98d9f

Browse files
committed
ci: add Github Actions workflow to run checks
1 parent 12cd989 commit cc98d9f

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: deploy
2+
on:
3+
workflow_run:
4+
workflows: ["validate"]
5+
branches: ["main"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
environment: deploy-${{matrix.environment}}
13+
strategy:
14+
matrix:
15+
environment: ["staging"] # TODO Add 'firefoxci' when we're ready to switch over.
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.11'
22+
cache: pip
23+
- name: Install dependencies
24+
run: pip install -r requirements/base.txt
25+
- name: Deploy environment
26+
run: tc-admin apply --environment ${{matrix.environment}}

.github/workflows/validate.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: validate
2+
on: [push]
3+
4+
jobs:
5+
check:
6+
runs-on: ubuntu-latest
7+
environment: validate-${{matrix.environment}}
8+
strategy:
9+
matrix:
10+
environment: ["staging", "firefoxci"]
11+
env:
12+
TASKCLUSTER_ROOT_URL: ${{vars.TASKCLUSTER_ROOT_URL}}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.11'
19+
cache: pip
20+
- name: Install dependencies
21+
run: pip install -r requirements/test.txt
22+
- name: Run checks
23+
run: tc-admin check --environment ${{matrix.environment}}

0 commit comments

Comments
 (0)