[tests] use testelpa mirror
This commit is contained in:
parent
6067c19be7
commit
62e6f110be
|
@ -10,6 +10,7 @@ on:
|
|||
env:
|
||||
TEST_SCRIPT: ./.github/workflows/scripts/test
|
||||
TESTELPA_REPO: JAremko/testelpa-develop
|
||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
@ -46,10 +47,10 @@ jobs:
|
|||
run: |
|
||||
curl -L \
|
||||
https://github.com/$TESTELPA_REPO/releases/latest/download/elpa.zip \
|
||||
--output elpa.zip
|
||||
--output /tmp/elpa.zip
|
||||
|
||||
- name: Unpack elpa mirror
|
||||
run: unzip elpa.zip -d testelpa_mirror
|
||||
run: unzip /tmp/elpa.zip -d ../testelpa_mirror
|
||||
|
||||
- name: Dependencies installation
|
||||
run: ${{ env.TEST_SCRIPT }} ${{ matrix.test_root }} installation
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
(setq configuration-layer-elpa-archives
|
||||
`(("melpa" . "melpa.org/packages/")
|
||||
("org" . "orgmode.org/elpa/")
|
||||
("gnu" . "elpa.gnu.org/packages/")
|
||||
("spacelpa" . ,(concat configuration-layer-stable-elpa-directory
|
||||
"spacelpa-"
|
||||
configuration-layer-stable-elpa-version))
|
||||
("testelpa" . ,(format "%s/../testelpa_mirror"
|
||||
(getenv "GITHUB_WORKSPACE")))))
|
||||
|
||||
(setq package-archive-priorities
|
||||
'(("testelpa" . 9)
|
||||
("spacelpa" . 8)
|
||||
("melpa" . 4)
|
||||
("org" . 2)
|
||||
("gnu" . 1)))
|
|
@ -17,6 +17,8 @@ abs_p() {
|
|||
}
|
||||
|
||||
ln -s "$(pwd)" $HOME/.emacs.d
|
||||
cp .github/workflows/scripts/dot_lock.el ~/.emacs.d/.lock
|
||||
|
||||
testdir=$(abs_p tests/$1)
|
||||
cd ..
|
||||
|
||||
|
|
Loading…
Reference in New Issue