Improve CI workflow
All checks were successful
CI / test (sbcl-bin) (push) Successful in 5m42s

This commit is contained in:
paku 2025-01-12 01:27:21 +09:00
parent 17fe4de76a
commit 2562363e20
Signed by: paku
GPG key ID: 5B4E8402BCC50607
2 changed files with 14 additions and 39 deletions

View file

@ -18,21 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Restore cache
id: restore-cache
uses: actions/cache/restore@v4
with:
path: |
/usr/local/bin/ros
/usr/local/etc/roswell/
~/.roswell
~/.config/common-lisp/source-registry.conf.d
~/lisp
.qlot/
key: roswell-${{ runner.os }}-${{ matrix.lisp }}-${{ hashFiles('qlfile.lock') }}
- name: Install dependencies
if: steps.restore-cache.outputs.cache-hit != 'true'
env:
LISP: ${{ matrix.lisp }}
run: |
@ -41,19 +27,5 @@ jobs:
PATH="~/.roswell/bin:$PATH"
qlot install
- name: Save cache
id: save-cache
uses: actions/cache/save@v4
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: |
/usr/local/bin/ros
/usr/local/etc/roswell/
~/.roswell
~/.config/common-lisp/source-registry.conf.d
~/lisp
.qlot/
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- name: Run tests
run: .qlot/bin/rove lack-mw.asd

View file

@ -7,7 +7,7 @@ on:
pull_request:
jobs:
tests:
test:
runs-on: ubuntu-latest
strategy:
@ -15,14 +15,17 @@ jobs:
lisp:
- sbcl-bin
env:
LISP: ${{ matrix.lisp }}
steps:
- uses: actions/checkout@v4
- uses: 40ants/setup-lisp@v4
with:
asdf-system: lack-mw
- uses: 40ants/run-tests@v2
with:
asdf-system: lack-mw
- name: Install dependencies
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
ros install fukamachi/qlot
PATH="~/.roswell/bin:$PATH"
qlot install
- name: Run tests
run: .qlot/bin/rove lack-mw.asd