Skip to content

Commit

Permalink
ci: migrate windows pipelines to GH actions
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune committed Oct 20, 2023
1 parent 2ccd309 commit f238986
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 14 deletions.
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.

0 comments on commit f238986

Please sign in to comment.