test.yml (1392B)
1 name: Test 2 3 on: push 4 5 jobs: 6 test: 7 strategy: 8 matrix: 9 os: [ubuntu-latest] 10 emacs_version: 11 - '24.3' 12 - '25.1' 13 - '25.3' 14 - '26.1' 15 - '26.2' 16 - '26.3' 17 - '27.1' 18 include: 19 # - emacs_version: 'snapshot' 20 # os: ubuntu-latest 21 # allow_failure: true 22 # - os: macos-latest 23 # emacs_version: '24.3' 24 - os: macos-latest 25 emacs_version: '25.1' 26 - os: macos-latest 27 emacs_version: '27.1' 28 runs-on: ${{ matrix.os }} 29 steps: 30 - name: Checkout code 31 uses: actions/checkout@v2 32 33 - name: Set up Emacs 34 uses: purcell/setup-emacs@master 35 with: 36 version: ${{ matrix.emacs_version }} 37 38 - name: Set up Cask 39 uses: conao3/setup-cask@master 40 41 - name: Install Lua (Ubuntu) 42 if: matrix.os != 'macos-latest' 43 run: sudo apt install lua5.2 && echo 'print(123)' | lua -i 44 45 - name: Install Lua (MacOS) 46 if: matrix.os == 'macos-latest' 47 uses: xpol/setup-lua@master 48 with: 49 lua-version: "5.2.4" 50 51 - name: Run tests 52 if: matrix.allow_failure != true 53 run: 'cask && make test' 54 55 - name: Run tests (allow failure) 56 if: matrix.allow_failure == true 57 run: 'cask && make test || true'