Repository navigation
60 lines (50 loc) · 1.46 KB
/
Copy pathci.yml
File metadata and controls
60 lines (50 loc) · 1.46 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ctt:
name: Generated output is up to date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Regenerate .ctt/
run: uvx --from copier-template-tester ctt --continue-on-error
- name: Fail if generated output drifted from the template
run: git diff --exit-code -- .ctt
generated:
name: ${{ matrix.case }}
runs-on: ubuntu-latest
needs: ctt
strategy:
fail-fast: false
matrix:
case: [default, demo]
defaults:
run:
working-directory: .ctt/${{ matrix.case }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
working_directory: .ctt/${{ matrix.case }}
- name: Install dependencies and build assets
run: |
deno install
mise run build
- name: Run Tests
run: deno task test
- name: Type Check
run: deno task check
- name: Check Format
run: deno task fmt --check
- name: Check Biome
run: deno task biome check