Skip to content

Commit b879fda

Browse files
committed
test: Add testing to CI
1 parent bdfc00b commit b879fda

File tree

2 files changed

+57
-34
lines changed

2 files changed

+57
-34
lines changed

.github/workflows/push.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
name: Test
3+
4+
on:
5+
push:
6+
7+
concurrency:
8+
group: ${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
13+
build:
14+
15+
runs-on: ${{ matrix.operating-system }}
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
operating-system:
21+
- ubuntu-latest
22+
# logtalk-actions/setup-swi-prolog@master does not work with windows, so a different solution would be required
23+
# - windows-latest
24+
node-version:
25+
- 20.x
26+
- 22.x
27+
- 24.x
28+
29+
steps:
30+
31+
- name: Install prolog
32+
uses: logtalk-actions/setup-swi-prolog@master
33+
34+
- name: Clone EYE repo
35+
uses: actions/checkout@v4
36+
with:
37+
repository: eyereasoner/eye
38+
39+
- name: Build EYE
40+
run: bash install.sh --prefix=$HOME/.local
41+
42+
- name: Checkout main branch
43+
uses: actions/checkout@v4
44+
45+
- name: Use Node.js ${{ matrix.node-version }}
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: ${{ matrix.node-version }}
49+
50+
- name: Enable Node.js Corepack
51+
run: corepack enable
52+
53+
- name: Yarn install
54+
run: yarn install
55+
56+
- name: Test
57+
run: yarn test

0 commit comments

Comments
 (0)