diff --git a/.forgejo/workflows/CI.yml b/.forgejo/workflows/CI.yml new file mode 100644 index 0000000..e523456 --- /dev/null +++ b/.forgejo/workflows/CI.yml @@ -0,0 +1,59 @@ +name: 'CI' + +on: + push: + branches: + - 'main' + pull_request: + +jobs: + test: + runs-on: docker + + strategy: + matrix: + lisp: + - sbcl-bin + + 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', '.forgejo/workflows/CI.yml') }} + + - name: Install dependencies + if: steps.restore-cache.outputs.cache-hit != 'true' + 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: 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 ningle-fbr.asd \ No newline at end of file diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..5c662f5 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,31 @@ +name: 'CI' + +on: + push: + branches: + - 'main' + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + lisp: + - sbcl-bin + + steps: + - uses: actions/checkout@v4 + + - 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 ningle-fbr.asd diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 2c2a54a..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: 'test' - -on: - push: - branches: - - 'main' - pull_request: - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - matrix: - lisp: - - sbcl-bin - - ccl-bin - - env: - LISP: ${{ matrix.lisp }} - - steps: - - uses: actions/checkout@v4 - - uses: 40ants/setup-lisp@v4 - with: - asdf-system: ningle-fbr - - uses: 40ants/run-tests@v2 - with: - asdf-system: ningle-fbr