This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (73 loc) · 2.08 KB
/
runtime-operator.yml
File metadata and controls
80 lines (73 loc) · 2.08 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
name: runtime-operator
on:
push:
branches:
- "main"
tags:
- "v*"
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
permissions:
# Required: allow read access to the content for analysis.
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/setup-go
- uses: ./.github/actions/lint-go
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/setup-go
- name: Build
run: make build
- name: Test
run: make test
test-e2e:
needs: [lint, test]
runs-on: ubuntu-latest
# NOTE(lxf): Disabled until we update prometheus/cert-manager in the test setup
if: false
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: ./.github/actions/setup-go
- uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # v1.13.0
with:
cluster_name: kind
- name: Running Test e2e
run: make test-e2e
canary:
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'canary')
needs: [lint, test]
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
file: Dockerfile
image: ghcr.io/wasmcloud/runtime-operator
push: true
tags: |
type=raw,value=canary
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, test]
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit
with:
file: Dockerfile
image: ghcr.io/wasmcloud/runtime-operator
push: true
tags: |
type=semver,pattern={{version}},value=${{ github.ref_name }}