From 46efe9ac23600acab21c55d4518dd523f6984652 Mon Sep 17 00:00:00 2001 From: "Yen-Chin, Lee" Date: Sat, 5 Aug 2023 16:46:03 +0800 Subject: [PATCH] github: add github action support Signed-off-by: Yen-Chin, Lee --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..c7b0e2e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: CI + +on: + pull_request: + push: + paths-ignore: + - '**.md' + - '**.org' + - '.dir-locals.el' + branches: + - master + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + emacs_version: [23.4, 24.1, 24.2, 24.3, 24.4, 24.5, 25.1, 25.2, 25.3, 26.1, 26.2, 26.3, 27.1, 27.2, 28.1, 28.2, 29.1, release-snapshot, snapshot] + exclude: + - os: macos-latest + emacs_version: 23.4 + - os: macos-latest + emacs_version: 24.1 + - os: macos-latest + emacs_version: 24.2 + + steps: + - uses: actions/checkout@v2 + - name: Setup Emacs + uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + - name: Check emacs version + run: emacs --version + - name: Clean and rebuild + run: | + make clean + make + - name: Start UnitTest + run: | + make test