Canary Testing #1446
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: Canary Testing | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
workflow_dispatch: {} | |
release: | |
types: | |
- published | |
jobs: | |
install: | |
name: Installation User Flow | |
env: | |
WING_DISABLE_ANALYTICS: true | |
strategy: | |
fail-fast: true | |
matrix: | |
runner: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
node: | |
- 18 | |
- 20 | |
install_command: | |
- npm install -g winglang@latest | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Wing | |
run: | | |
${{ matrix.install_command }} | |
- name: Download examples/tests/valid/test_bucket.test.w | |
run: | | |
curl -L https://raw.githubusercontent.com/winglang/wing/main/examples/tests/valid/test_bucket.test.w > test_bucket.test.w | |
cat test_bucket.test.w | |
- name: Run Test | |
run: | | |
wing test test_bucket.test.w | |
- name: Download examples/tests/valid/hello.test.w | |
run: | | |
curl -L https://raw.githubusercontent.com/winglang/wing/main/examples/tests/valid/hello.test.w > hello.test.w | |
cat hello.test.w | |
- name: Run Compile | |
run: | | |
wing compile hello.test.w -t tf-aws |