Skip to content

Merge pull request #144 from kcl-lang/dependabot/go_modules/golang.or… #404

Merge pull request #144 from kcl-lang/dependabot/go_modules/golang.or…

Merge pull request #144 from kcl-lang/dependabot/go_modules/golang.or… #404

name: example-e2e-tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
ubuntu:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: KCL Installation
run: go install ./cmd/kcl
- name: Example tests
shell: bash -ieo pipefail {0}
run: PATH=$PATH:$HOME/go/bin ./examples/test.sh
- name: Run concurrent e2e tests
run: PATH=$PATH:$HOME/go/bin ./scripts/concurrent_test.sh
macos:
strategy:
matrix:
os: [ macos-12, macos-13, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: KCL Installation
run: go install ./cmd/kcl
- name: e2e tests
run: PATH=$PATH:$HOME/go/bin kcl ./examples/kubernetes.k
- name: Example tests
shell: bash -ieo pipefail {0}
run: PATH=$PATH:$HOME/go/bin ./examples/test.sh
- name: Run concurrent e2e tests
run: PATH=$PATH:$HOME/go/bin ./scripts/concurrent_test.sh
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Make
run: choco install make -y
- name: KCL Installation and Tests
shell: powershell
run: |
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git
scoop install kcl-lang/kcl
kcl.exe .\examples\kubernetes.k
.\examples\test.ps1