Skip to content

Commit

Permalink
Merge pull request #121 from perspect3vism/cli
Browse files Browse the repository at this point in the history
AD4M cli
  • Loading branch information
lucksus authored Nov 26, 2022
2 parents 140d6f4 + 61d0486 commit 5605d0e
Show file tree
Hide file tree
Showing 52 changed files with 11,768 additions and 13 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Integration

on:
push:
branches:
- main
pull_request:

jobs:
test:
name: AD4M cli <> AD4M host
runs-on: macos-latest
strategy:
matrix:
node-version: [16.x]

steps:
- name: Fetch source code
uses: actions/checkout@v2

- name: git init submodule
run: git submodule init && git submodule update

- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: 1.63.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Yarn Install
run: yarn install

- name: Yarn Build
run: yarn build

- name: Build AD4M-Host
run: yarn run package-macos

- name: Build AD4M cli
run: cd cli && cargo build --release

- name: Run binaries test script
run: ./tests/bats/bin/bats tests/binaries.bats

- name: Run integration test script
run: ./tests/bats/bin/bats tests/integration.bats

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ jobs:
run: |
choco install swi-prolog
$env:path += ";C:\Program Files\swipl\bin"
yarn run test:windows
yarn run test:windows
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@ yarn-error.log*
!rollup.config.js
!jest.config.js
!postinstall.js
!esbuild.js
!esbuild.js

cli/target
rust-client/target
target

tests/ad4m1
tests/ad4m2
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "tests/bats"]
path = tests/bats
url = https://github.com/bats-core/bats-core.git
[submodule "tests/test_helper/bats-support"]
path = tests/test_helper/bats-support
url = https://github.com/bats-core/bats-support.git
[submodule "tests/test_helper/bats-assert"]
path = tests/test_helper/bats-assert
url = https://github.com/bats-core/bats-assert.git
Loading

0 comments on commit 5605d0e

Please sign in to comment.