Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: migrate windows pipelines to GH actions #1417

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/chocolatey-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish the Lacework CLI to Chocolatey

on: workflow_dispatch

jobs:
publish-chocolatey:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Running integration tests
container: lacework/win-golang:1.18-20h2
shell: pwsh
run: |
# install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# publish chocolatey package
./scripts/chocolatey/package.ps1
exit $LastExitCode
2 changes: 1 addition & 1 deletion .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- name: Run gitlint
shell: bash
run: |
gitlint --commit ${{ github.event.pull_request.head.sha }} --debug
gitlint --commit ${{ github.event.pull_request.head.sha }} --debug
29 changes: 29 additions & 0 deletions .github/workflows/windows-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run integration tests for the Lacework CLI on Windows

on:
push:
branches:
- main
- release

jobs:
windows-integration-tests:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- uses: actions/setup-go@v4
with:
go-version: '^1.21'
- run: go version

- name: Running integration tests
shell: pwsh
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force
./scripts/codefresh.ps1
exit $LastExitCode
22 changes: 14 additions & 8 deletions vendor/golang.org/x/net/html/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 24 additions & 4 deletions vendor/golang.org/x/net/html/render.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion vendor/golang.org/x/net/html/token.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.