-
Notifications
You must be signed in to change notification settings - Fork 145
43 lines (41 loc) · 1.06 KB
/
push.yml
File metadata and controls
43 lines (41 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Push
on:
push:
branches:
- master
jobs:
test:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24.x"
- name: Install repository
run: npm ci
- name: Run tests
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.5.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
verbose: true
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v3
with:
project_id: policyengine-app
- name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v3"
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
create_credentials_file: true
- name: Deploy
run: make deploy