Canary Testing #4324
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 | |
runs-on: ${{ matrix.runner }} | |
steps: | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Get Latest Wing Version | |
id: get-version | |
shell: bash | |
run: | | |
echo version=$(npm view winglang version) >> $GITHUB_OUTPUT | |
- name: Install Wing | |
run: | | |
${{ matrix.install_command }}@${{ steps.get-version.outputs.version }} | |
- name: Download examples/tests/valid/test_bucket.w | |
run: | | |
curl -L https://raw.githubusercontent.com/winglang/wing/main/examples/tests/valid/test_bucket.w > test_bucket.w | |
cat test_bucket.w | |
- name: Run Test | |
run: | | |
wing test test_bucket.w | |
- name: Download examples/tests/valid/hello.w | |
run: | | |
curl -L https://raw.githubusercontent.com/winglang/wing/main/examples/tests/valid/hello.w > hello.w | |
cat hello.w | |
- name: Run Compile | |
run: | | |
wing compile hello.w -t tf-aws |