Skip to content

Commit 8999a52

Browse files
authored
ci: migrate windows pipelines to GH actions (#1417)
Signed-off-by: Salim Afiune Maya <[email protected]>
1 parent 6809238 commit 8999a52

File tree

6 files changed

+101
-14
lines changed

6 files changed

+101
-14
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish the Lacework CLI to Chocolatey
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
publish-chocolatey:
7+
runs-on: windows-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
ref: ${{ github.ref }}
13+
fetch-depth: 0
14+
15+
- name: Running integration tests
16+
container: lacework/win-golang:1.18-20h2
17+
shell: pwsh
18+
run: |
19+
# install chocolatey
20+
Set-ExecutionPolicy Bypass -Scope Process -Force
21+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
22+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
23+
# publish chocolatey package
24+
./scripts/chocolatey/package.ps1
25+
exit $LastExitCode

.github/workflows/commit-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- name: Run gitlint
2222
shell: bash
2323
run: |
24-
gitlint --commit ${{ github.event.pull_request.head.sha }} --debug
24+
gitlint --commit ${{ github.event.pull_request.head.sha }} --debug
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run integration tests for the Lacework CLI on Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release
8+
9+
jobs:
10+
windows-integration-tests:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.ref }}
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-go@v4
20+
with:
21+
go-version: '^1.21'
22+
- run: go version
23+
24+
- name: Running integration tests
25+
shell: pwsh
26+
run: |
27+
Set-ExecutionPolicy Bypass -Scope Process -Force
28+
./scripts/codefresh.ps1
29+
exit $LastExitCode

vendor/golang.org/x/net/html/doc.go

Lines changed: 14 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/net/html/render.go

Lines changed: 24 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/net/html/token.go

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)