Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 90abfa9

Browse files
Feat/working provider (#1)
* Compiling, but untested provider * Working applier with happy path test * Adds tests for everything * Add GH workflow * Updates readme with useful info * Address PR feedback
1 parent 41de661 commit 90abfa9

File tree

8 files changed

+790
-113
lines changed

8 files changed

+790
-113
lines changed

.github/workflows/build.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
defaults:
12+
run:
13+
working-directory: applier
14+
15+
jobs:
16+
build:
17+
runs-on: ${{ matrix.config.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- { os: "ubuntu-latest" }
23+
- { os: "macos-latest" }
24+
- { os: "windows-latest" }
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Install latest Rust stable toolchain
29+
uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: stable
32+
default: true
33+
components: clippy, rustfmt
34+
- name: Build
35+
run: make build
36+
37+
integration:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Install latest Rust stable toolchain
43+
uses: actions-rs/toolchain@v1
44+
with:
45+
toolchain: stable
46+
default: true
47+
components: clippy, rustfmt
48+
- name: Build
49+
run: make build
50+
- uses: engineerd/[email protected]
51+
with:
52+
version: "v0.11.1"
53+
# Because we are using rustls-tls, the credentials for the kubernetes cluster can't be a bare IP
54+
- name: Use localhost for kubeconfig
55+
run: |
56+
sed -i 's/127.0.0.1/localhost/g' ~/.kube/config
57+
- name: Run tests
58+
run: make test

0 commit comments

Comments
 (0)