Repository navigation
51 lines (46 loc) · 1.74 KB
/
Copy pathci.yml
File metadata and controls
51 lines (46 loc) · 1.74 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
# Everything CI runs, you can run locally with the same `just` command. `lint`
# has its own job so a lint failure reports without pulling the stack images.
name: CI
# Pull requests only: main moves through PRs, so a push run would repeat the
# check. No path filter: gitleaks must see every PR, and a skipped workflow
# never reports the checks a PR needs. infra/ also has its own (infra.yml).
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
# A push to an open PR supersedes the run in flight.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# gitleaks scans git history; a shallow clone would pass vacuously.
with:
fetch-depth: 0
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
# 600, or the exposure guards refuse it as world-readable.
- run: install -m 600 .env.example .env
- run: just lint
smoke:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
# 600, or the exposure guards refuse it as world-readable.
- run: install -m 600 .env.example .env
- run: just validate
# SMOKE_ALERTS adds the TargetDown round trip (about 2 minutes).
- run: just smoke
env:
SMOKE_ALERTS: "1"
# The smoke failure messages point at these logs.
- if: failure()
run: just smoke-logs
- if: always()
run: just smoke-down