Skip to content

Commit 6651e38

Browse files
temp gh action
Signed-off-by: Karan <karanlokchandani@protonmail.com>
1 parent 94d79ef commit 6651e38

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/temp.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# both postgres and mqtt tests are run in runtime_tests
2+
name: Run All Runtime Tests
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
pull_request:
10+
branches:
11+
- main
12+
- master
13+
14+
jobs:
15+
test:
16+
name: Run Runtime Tests
17+
runs-on: ubuntu-latest
18+
services:
19+
postgres:
20+
image: postgres:15
21+
env:
22+
POSTGRES_USER: postgres
23+
POSTGRES_PASSWORD: postgres
24+
POSTGRES_DB: spin_dev
25+
ports:
26+
- 5432:5432
27+
options: >-
28+
--health-cmd pg_isready
29+
--health-interval 10s
30+
--health-timeout 5s
31+
--health-retries 5
32+
33+
steps:
34+
- uses: actions/checkout@v3
35+
36+
# Install all the toolchain dependencies
37+
- name: Install Rust wasm target
38+
run: rustup target add wasm32-wasip1 wasm32-unknown-unknown
39+
40+
- uses: goto-bus-stop/setup-zig@v2
41+
42+
- uses: actions/setup-go@v4
43+
with:
44+
go-version: '1.23'
45+
cache-dependency-path: "**/go.sum"
46+
47+
- uses: acifani/setup-tinygo@v2
48+
with:
49+
tinygo-version: '0.37.0'
50+
51+
- uses: actions/setup-node@v3
52+
with:
53+
node-version: '22.x'
54+
55+
- name: Install Grain
56+
run: |
57+
wget https://github.com/grain-lang/grain/releases/download/grain-v0.6.6/grain-linux-x64
58+
chmod +x grain-linux-x64
59+
mv grain-linux-x64 grain
60+
echo "$PWD" >> $GITHUB_PATH
61+
62+
- name: Run Full Runtime Tests
63+
run: cargo test --release runtime_tests --no-default-features --features extern-dependencies-tests --no-fail-fast -- --nocapture

0 commit comments

Comments
 (0)