-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (56 loc) · 1.72 KB
/
Copy pathtests.yml
File metadata and controls
72 lines (56 loc) · 1.72 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
# Lint the workflow files themselves first. actionlint statically checks
# ${{ }} expressions (incl. that functions like startsWith/contains exist),
# which catches errors that otherwise only surface as a startup failure with
# zero jobs run — e.g. the invalid trim() that broke ai-review.yml.
actionlint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Download actionlint
id: get_actionlint
run: bash <(curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/v1.7.11/scripts/download-actionlint.bash) 1.7.11
shell: bash
- name: Lint workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
test:
needs: actionlint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6.3.0
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e '.[web]' pytest
- name: Run tests
run: make test
helm:
needs: actionlint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Helm
uses: azure/setup-helm@v5
- name: Lint Helm chart
run: helm lint deploy/helm
- name: Render production values
run: helm template serge deploy/helm -n serge -f deploy/helm/env/prod.yaml