Repository navigation
104 lines (80 loc) · 2.4 KB
/
Copy pathtest.yml
File metadata and controls
104 lines (80 loc) · 2.4 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Test
on:
push:
branches:
- main
pull_request_target:
branches:
- main
workflow_dispatch:
jobs:
test:
strategy:
matrix:
node:
- "16"
- "18"
os:
- ubuntu-latest
- windows-latest
- macos-latest
name: "${{ matrix.os }} - Node.js ${{ matrix.node }}"
runs-on: ${{ matrix.os }}
env:
VERBOSE: 1
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.2
with:
version: latest
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install esbuild for TypeScript support
run: npm i -g esbuild && esbuild --version
- name: Install Python 3 for Python support
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Build NCAIC CLI Toolkit
run: npx -y pnpm i && npm run build
- name: Check NCAIC Version
run: node dist/index.js --version
- name: Check Language Support
run: node dist/index.js check
- name: Test C program
run: node dist/index.js test programs/rand.c
- name: Test C++ program
run: node dist/index.js test programs/rand.cpp
- name: Test Go program
run: node dist/index.js test programs/rand.go
- name: Test JS program
run: node dist/index.js test programs/rand.js
- name: Test PY program
run: node dist/index.js test programs/rand.py
- name: Test RS program
run: node dist/index.js test programs/rand.rs
- name: Test TS program
run: node dist/index.js test programs/rand.ts
docker-image:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.2
with:
version: latest
- name: Build NCAIC CLI Toolkit
run: npx -y pnpm i && npm run build
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker Image
run: docker buildx build --platform linux/arm64/v8,linux/amd64 -t jacoblincool/ncaic:latest .