Skip to content

Commit

Permalink
ci(github): add
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Mar 28, 2024
1 parent 2a7d931 commit c0449dc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
redis-version: [6, 7]

steps:
- uses: actions/checkout@v4

- name: Install Tcl
run: sudo apt-get install -y tcl

- name: Start Redis server
uses: supercharge/[email protected]
with:
redis-version: ${{ matrix.redis-version }}

- name: Download Jim Tcl versions
run: |
wget -O jimsh-0.76 https://github.com/dbohdan/jimsh-static/releases/download/v1/jimsh-0.76-51f65c6d38-i386
wget -O jimsh-0.77 https://github.com/dbohdan/jimsh-static/releases/download/v1/jimsh-0.77-a9bf5975fd-i386
wget -O jimsh-0.78 https://github.com/dbohdan/jimsh-static/releases/download/v1/jimsh-0.78-022f902632-i386
wget -O jimsh-0.79 https://github.com/dbohdan/jimsh-static/releases/download/v2/jimsh-0.79-0aa0fb4e3a-amd64
wget -O jimsh-0.80 https://github.com/dbohdan/jimsh-static/releases/download/v4-0.80-e4416cf86f/jimsh-0.80-e4416cf86f-amd64
wget -O jimsh-0.82 https://github.com/dbohdan/jimsh-static/releases/download/v5-0.82-fcbb4499a6/jimsh-0.82-fcbb4499a6-amd64
chmod +x jimsh*
- name: 'Set `PATH`'
run: echo "PATH=$PATH:$PWD/jimtcl" >> $GITHUB_ENV

- name: Run tests
run: |
./jimsh-0.76 tests.tcl
./jimsh-0.77 tests.tcl
./jimsh-0.78 tests.tcl
./jimsh-0.79 tests.tcl
./jimsh-0.80 tests.tcl
./jimsh-0.82 tests.tcl
tclsh tests.tcl

0 comments on commit c0449dc

Please sign in to comment.