-
-
Notifications
You must be signed in to change notification settings - Fork 0
156 lines (139 loc) Β· 5.18 KB
/
Copy pathCI.yaml
File metadata and controls
156 lines (139 loc) Β· 5.18 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# π»ββοΈπΊ charted-helm-plugin: Helm plugin to help faciliate operations with charted-server
# Copyright 2023-2025 Noelware, LLC. <team@noelware.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI Pipeline
on:
workflow_dispatch: {}
push:
branches:
- 'issues/gh-**'
- 'feat/**'
- main
paths-ignore:
- '.github/**'
- '.vscode/**'
- 'assets/**'
- 'distribution/**'
- 'docs/**'
- '.*ignore'
- '**.md'
- .envrc
- .noeldoc
- .prettierrc.json
- rustfmt.toml
- taplo.toml
- LICENSE
- renovate.json
pull_request:
types: [opened, synchronize]
branches:
- 'issues/gh-**'
- 'feat/**'
- main
paths:
- '**'
permissions:
contents: read
checks: write
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
rust:
name: "Rust CI / ${{matrix.runner == 'ubuntu-24.04' && 'Linux (x64)' || matrix.runner == 'linux-aarch64' && 'Linux (aarch64)' || matrix.runner == 'macos-latest' && 'macOS (x64)' || matrix.runner == 'macos-14-xlarge' && 'macOS (aarch64)' || matrix.runner == 'windows-latest' && 'Windows (x64)'}}"
runs-on: ${{matrix.runner}}
strategy:
fail-fast: true
matrix:
runner:
[
ubuntu-24.04,
linux-aarch64,
macos-latest,
#macos-14-xlarge,
windows-latest
]
steps:
- uses: actions/checkout@v5
# Ensure that we test on the recent Nightly compiler toolchain
- run: rm ${GITHUB_WORKSPACE}/rust-toolchain.toml
shell: bash
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- name: 'Windows: Install `nasm` for `aws-lc-sys`'
if: ${{matrix.runner == 'windows-latest'}}
uses: ilammy/setup-nasm@v1
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-nextest
- run: cargo build --workspace --all-features
- run: cargo nextest run --workspace --all-features
- run: cargo test --doc --workspace --all-features
cargo-deny:
name: 'Rust / `cargo deny`'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-deny
- run: cargo deny check all
report-missing-dependencies:
name: 'Rust / Report Missing Dependencies'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: cargo-machete
- run: cargo machete
# Perform Cachix builds on each commit (for bleeding edge cases)
# and each release (for `Noelware/nixpkgs-noelware`).
nix-build:
name: 'Nix / Build'
runs-on: ubuntu-latest
if: ${{github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'charted-dev/helm-plugin'}}
steps:
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
# TODO(@auguwu): switch to https://nix.noelware.org,
# which uses Attic as the binary cache
# service.
# - uses: ryanccn/attic-action@v0
# with:
# endpoint: https://nix.noelware.org
# cache: noelware
# token: ${{secrets.NIX_BINARY_CACHE_TOKEN}}
- uses: cachix/cachix-action@v16
with:
name: noelware
authToken: ${{secrets.CACHIX_AUTH_TOKEN}}
- run: nix build .#helm-plugin
clippy:
name: 'Rust / Clippy'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
# Ensure that we test on the recent Nightly compiler toolchain
- run: rm ${GITHUB_WORKSPACE}/rust-toolchain.toml
shell: bash
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: auguwu/clippy-action@1.4.0
with:
all-features: true
check-args: --workspace --locked
token: ${{github.token}}