aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-10-17 17:57:47 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2021-10-17 17:57:47 +0200
commit50942eaa91b8d7a5e194445880ba66c27d132db6 (patch)
treeafad8e4c66dc2c3f3b880f06fecaafb62b6fb17c /.github/workflows
parent6759423b8743cc13e8723a97e8fabe9e97fb192f (diff)
downloaddotfiles-50942eaa91b8d7a5e194445880ba66c27d132db6.tar.gz
dotfiles-50942eaa91b8d7a5e194445880ba66c27d132db6.zip
ci: travis -> github
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..4f7c250
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,39 @@
+name: ci
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}
+
+ strategy:
+ fail-fast: false
+ matrix:
+ emacs_version:
+ - '27.2'
+ - 'snapshot'
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+
+ - name: Run tests for scripts
+ run: |
+ ./bin/test/test.sh
+
+ - name: Install Doom Emacs
+ run: |
+ git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
+ ~/.emacs.d/bin/doom install
+
+ - name: Check GNU Emacs
+ run: |
+ doom doctor