-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (56 loc) · 1.46 KB
/
tests.yaml
File metadata and controls
58 lines (56 loc) · 1.46 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
name: Kratix CLI Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches-ignore:
- 'release-please--*'
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24
check-latest: true
- name: Install Terraform CLI
uses: hashicorp/setup-terraform@v3
- name: Run make test
run: make test
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
update-release-pr:
runs-on: ubuntu-latest
needs: [unit-test]
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install -g release-please
- name: Create pending releases
if: github.ref == 'refs/heads/main'
env:
TOKEN: ${{ secrets.RELEASE_CREATOR_TOKEN }}
run: |
release-please \
--token=$TOKEN \
--repo-url=syntasso/kratix-cli \
github-release
- name: Update Release PR
if: github.ref == 'refs/heads/main'
env:
TOKEN: ${{ secrets.RELEASE_CREATOR_TOKEN }}
run: |
release-please \
--token=$TOKEN \
--repo-url=syntasso/kratix-cli \
release-pr