summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: 779bccd0cfcde53c29802737cffb1a80c31881ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        emacs_version:
          - 26.1
          - 26.2
          - 26.3
          - snapshot

    steps:
    - uses: actions/checkout@v2

    - uses: actions/setup-python@v1.1.1
      with:
        python-version: '3.6'
        architecture: 'x64'

    - uses: purcell/setup-emacs@master
      with:
        version: ${{ matrix.emacs_version }}

    - uses: conao3/setup-cask@master
      with:
        version: 0.8.4

    - name: Install Rust toolchain
      uses: actions-rs/toolchain@v1
      with:
        profile: minimal
        toolchain: stable
        override: true
        components: rust-src

    - name: Install Rust Analyzer
      env:
        RUST_ANALYZER_VERSION: 2020-04-20
      run: |
        mkdir -p $HOME/bin
        wget https://github.com/rust-analyzer/rust-analyzer/releases/download/$RUST_ANALYZER_VERSION/rust-analyzer-linux -O $HOME/bin/rust-analyzer
        chmod +x $HOME/bin/rust-analyzer
        echo "::add-path::$HOME/bin"

    - name: Run tests
      run: 'make ci'