Skip to content

Commit 0c61be6

Browse files
authored
Merge pull request #49 from mmorel-35/issue-41
2 parents a92e09b + 67d153a commit 0c61be6

11 files changed

+1962
-678
lines changed

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: weekly
12+
- package-ecosystem: npm
13+
directory: /
14+
schedule:
15+
interval: weekly

.github/workflows/checkin.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ jobs:
55
check_pr:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v1
8+
- uses: actions/checkout@v2
99

10-
- name: "npm install"
11-
run: npm install
10+
- uses: actions/setup-node@v2
11+
with:
12+
cache: npm
1213

13-
- name: "npm run build"
14-
run: npm run build
14+
- run: npm install
1515

16-
- name: "npm test"
17-
run: npm test
16+
- run: npm run build
1817

19-
- name: "npm audit"
20-
run: npm audit
18+
- run: npm test
19+
20+
- run: npm audit

.github/workflows/e2e.yml

+18-11
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,21 @@ jobs:
55
kind:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@master
9-
- name: "npm install"
10-
run: npm install
11-
- name: "npm run build"
12-
run: npm run build
13-
- uses: ./
14-
- name: Testing
15-
run: |
16-
kubectl cluster-info
17-
kubectl version
18-
kubectl get pods -n kube-system
8+
- uses: actions/checkout@v2
9+
10+
- uses: actions/setup-node@v2
11+
with:
12+
cache: npm
13+
14+
- run: npm install
15+
16+
- run: npm run build
17+
18+
- name: "Run engineerd/setup-kind@${{github.sha}}"
19+
uses: ./
20+
21+
- run: kubectl cluster-info
22+
23+
- run: kubectl version
24+
25+
- run: kubectl get pods -n kube-system

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,23 @@ jobs:
3737
The following arguments can be configured on the job using the `with` keyword
3838
(see example above). Currently, possible inputs are all the flags for
3939
`kind cluster create`, with the additional version, which sets the Kind version
40-
to downloadm and `skipClusterCreation`, which when present, skips creating the
40+
to download and `skipClusterCreation`, which when present, skips creating the
4141
cluster (the Kind tools is configured in the path).
4242

4343
Optional inputs:
4444

45-
- `version`: version of Kind to use (default `"v0.9.0"`)
45+
- `version`: version of Kind to use (default `"v0.11.1"`)
4646
- `config`: path (relative to the root of the repository) to a kind config file.
4747
If omitted, a default 1-node cluster will be created
4848
- `image`: node Docker image to use for booting the cluster.
49-
- `name`: cluster context name (default `"kind-kind"`)
49+
- `name`: cluster name (default `"kind"`)
5050
- `wait`: wait for control plane node to be ready (default `"300s"`)
5151
- `kubeconfig`: sets kubeconfig path instead of $KUBECONFIG or $HOME/.kube/config
5252
- `skipClusterCreation`: if `"true"`, the action will not create a cluster, just
5353
acquire the tools
54+
- `skipClusterDeletion`: if `"true"`, the action will not delete the cluster
55+
- `skipClusterLogsExport`: if `"true"`, the action will not export the cluster logs
56+
5457

5558
Example using optional inputs:
5659

action.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
image:
1111
description: "Node Docker image to use for booting the cluster"
1212
name:
13-
description: "Cluster context name (default kind)"
13+
description: "Cluster name (default kind)"
1414
default: "kind"
1515
wait:
1616
description: "Wait for control plane node to be ready (default 300s)"
@@ -20,6 +20,14 @@ inputs:
2020
skipClusterCreation:
2121
description: "If true, the action will not create a cluster, just acquire the tools"
2222
default: "false"
23+
skipClusterDeletion:
24+
description: "If true, the action will not delete the cluster"
25+
default: "false"
26+
skipClusterLogsExport:
27+
description: "If true, the action will not export the cluster logs"
28+
default: "false"
2329
runs:
2430
using: "node12"
25-
main: "lib/main.js"
31+
main: "dist/main/index.js"
32+
post: "dist/post/index.js"
33+
post-if: success()

0 commit comments

Comments
 (0)