Repository navigation
81 lines (69 loc) · 2.03 KB
/
Copy pathci.yaml
File metadata and controls
81 lines (69 loc) · 2.03 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
73
74
75
76
77
78
79
80
81
# Copyright 2026 Columnar Technologies Inc.
# SPDX-License-Identifier: Apache-2.0
name: continuous-integration
on:
push:
branches: [main]
paths-ignore:
- "docs/**"
- "overrides/**"
- "**.md"
- zensical.toml
- .github/workflows/docs.yaml
pull_request:
paths-ignore:
- "docs/**"
- "overrides/**"
- "**.md"
- zensical.toml
- .github/workflows/docs.yaml
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: install dbc
run: curl -LsSf https://dbc.columnar.tech/install.sh | sh
- name: install duckdb driver
run: dbc install duckdb
- name: build
run: cargo build
- name: lint
run: cargo clippy --all-targets -- -D warnings
- name: test
run: cargo test
# Compile the Windows-only code (console Ctrl-C handling, running the pager
# through cmd) and run the unit tests. The integration tests need bash and
# an ADBC driver, so they only run on Linux.
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: build
run: cargo build
- name: lint
run: cargo clippy --all-targets -- -D warnings
- name: test
run: cargo test --bins