Skip to content

Commit 5480d30

Browse files
authored
Add CI (#2)
1 parent 49b03df commit 5480d30

File tree

2 files changed

+104
-0
lines changed

2 files changed

+104
-0
lines changed

.github/workflows/test.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
2+
name: Test
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
schedule:
9+
- cron: '30 0 * * *'
10+
jobs:
11+
game-of-life:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: dcodeIO/setup-node-nvm@master
16+
with:
17+
node-version: current
18+
- run: |
19+
cd game-of-life
20+
npm install
21+
npm run asbuild
22+
i64:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v1
26+
- uses: dcodeIO/setup-node-nvm@master
27+
with:
28+
node-version: current
29+
- run: |
30+
cd i64
31+
npm install
32+
npm run asbuild
33+
npm test
34+
interference:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v1
38+
- uses: dcodeIO/setup-node-nvm@master
39+
with:
40+
node-version: current
41+
- run: |
42+
cd interference
43+
npm install
44+
npm run asbuild
45+
libm:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v1
49+
- uses: dcodeIO/setup-node-nvm@master
50+
with:
51+
node-version: current
52+
- run: |
53+
cd libm
54+
npm install
55+
npm run asbuild
56+
npm test
57+
loader:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v1
61+
- uses: dcodeIO/setup-node-nvm@master
62+
with:
63+
node-version: current
64+
- run: |
65+
cd loader
66+
npm install
67+
npm run asbuild
68+
npm test
69+
mandelbrot:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v1
73+
- uses: dcodeIO/setup-node-nvm@master
74+
with:
75+
node-version: current
76+
- run: |
77+
cd mandelbrot
78+
npm install
79+
npm run asbuild
80+
n-body:
81+
runs-on: ubuntu-latest
82+
steps:
83+
- uses: actions/checkout@v1
84+
- uses: dcodeIO/setup-node-nvm@master
85+
with:
86+
node-version: current
87+
- run: |
88+
cd n-body
89+
npm install
90+
npm run asbuild
91+
# npm test
92+
transform:
93+
runs-on: ubuntu-latest
94+
steps:
95+
- uses: actions/checkout@v1
96+
- uses: dcodeIO/setup-node-nvm@master
97+
with:
98+
node-version: current
99+
- run: |
100+
cd transform
101+
npm install
102+
npm test

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
![](https://avatars1.githubusercontent.com/u/28916798?s=64) AssemblyScript Examples
22
=======================
33

4+
[![Actions Status](https://github.com/AssemblyScript/examples/workflows/Test/badge.svg?branch=master)](https://github.com/AssemblyScript/examples/actions)
5+
46
## Instructions
57

68
This repository contains one example per directory. All examples can be obtained by cloning the repository:

0 commit comments

Comments
 (0)