-
Notifications
You must be signed in to change notification settings - Fork 200
53 lines (52 loc) · 1.3 KB
/
canary.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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@v4
with:
node-version: ${{ matrix.node }}
- name: Install Wing
run: |
${{ matrix.install_command }}
- name: Create and test each quickstart app
shell: bash
run: |
templates=$(wing new --list-templates)
for template in $templates; do
mkdir "$template"
cd "$_"
wing new "$template"
wing test main.w
cd ..
done
- name: Download tests/valid/hello.test.w
run: |
curl -L https://raw.githubusercontent.com/winglang/wing/main/tests/valid/hello.test.w > hello.test.w
cat hello.test.w
- name: Run Compile
run: |
wing compile hello.test.w -t tf-aws