test: add e2e tests for all platforms #77
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: example-e2e-test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
ubuntu-example-e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: "1.19" | |
- 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 | |
macos-example-e2e-test: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v1 | |
with: | |
go-version: "1.19" | |
- 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 | |
windows-example-e2e-test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: KCL Installation | |
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 | |
- name: Install Make | |
run: choco install make -y | |
- name: Example tests | |
run: .\examples\test.ps1 |