test: Add testing to CI #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| concurrency: | |
| group: ${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.operating-system }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| operating-system: | |
| - ubuntu-latest | |
| - windows-latest | |
| node-version: | |
| - 20.x | |
| - 22.x | |
| - 24.x | |
| steps: | |
| - name: Install prolog | |
| uses: logtalk-actions/setup-swi-prolog@master | |
| - name: Clone EYE repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: eyereasoner/eye | |
| - name: Test swipl | |
| run: swipl --version | |
| - name: Test clone | |
| run: cat install.sh | |
| - name: Build EYE | |
| run: bash install.sh | |
| - name: Test EYE 1 | |
| run: /opt/eye/bin/eye --version | |
| - name: Add EYE to $PATH | |
| run: echo echo "/opt/eye/bin" >> $GITHUB_PATH | |
| - name: Show PATH | |
| run: echo $PATH | |
| - name: Check directory | |
| run: ls -al /opt/eye/bin | |
| - name: Test EYE 2 | |
| run: eye --version | |
| - name: Checkout main branch | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Enable Node.js Corepack | |
| run: corepack enable | |
| - name: Yarn install | |
| run: yarn install | |
| - name: Test | |
| run: yarn test |