From 3b73ba6acccae7c6645c55d5bf7f71a55ef63abd Mon Sep 17 00:00:00 2001 From: Rego Borsodi Date: Tue, 3 Sep 2024 19:59:02 +0200 Subject: [PATCH] Add github ci for linux/windows runners --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ .gitignore | 4 ++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3dc24d3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: "Emacs test CI" +on: + push: + paths-ignore: + - '**.md' + - '**.org' +jobs: + # Linux ci adapted from https://github.com/purcell/emacs.d + startup_linux: + runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + emacs_version: + - 29.3 + experimental: [false] + # include: + # - emacs_version: snapshot + # experimental: true + steps: + - uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + - uses: actions/checkout@v4 + - name: Test directory + run: pwd + - name: Check startup + run: ./test/test_startup.sh + # windows CI is experimental and uses the Emacs version packaged + # by chocolately: https://community.chocolatey.org/packages/Emacs + startup_windows: + runs-on: windows-latest + steps: + - name: Disable choco progress + run: choco feature disable -n=showDownloadProgress + - name: Install emacs + run: choco install emacs + - name: Check emacs version + run: emacs --version + - uses: actions/checkout@v4 + - name: Check startup + run: bash ./test/test_startup.sh diff --git a/.gitignore b/.gitignore index 45d59d3..0c99957 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,7 @@ custom.el # keep some necessary files README.org LICENSE + +# github ci +!.github +!.github/**/*