Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
basic:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Build test image
run: docker build -f ci/Dockerfile -t cold-tests .
- name: Run basic tests
run: docker run --rm cold-tests
15 changes: 15 additions & 0 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Based on https://github.com/stampes/CISimple
FROM docker.io/dyalog/dyalog

USER root
RUN apt-get update && apt-get install -y --no-install-recommends binutils \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /cold
COPY --chown=dyalog:dyalog ws/ ws/
COPY --chown=dyalog:dyalog lnk/ lnk/
COPY --chown=dyalog:dyalog tests/ tests/
COPY --chown=dyalog:dyalog ci/tests.aplf ci/tests.aplf

ENV LOAD=/cold/ci/tests.aplf
USER dyalog
11 changes: 11 additions & 0 deletions ci/tests.aplf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tests;root
:Trap 0
root←⊃1 ⎕NPARTS''
_←⎕SE.Link.Import # (root,'ws')
#.UT.PROJECT_ROOT←root
_←#.UT.Run'B -serial'
:Else
⎕←⎕DMX.DM
⎕OFF 1
:EndTrap
⎕OFF 0
Loading