Skip to content

Commit c19807e

Browse files
ericdallobrotzeit
authored andcommitted
Add github action
1 parent 9bccc46 commit c19807e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/test.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
emacs_version:
14+
- 26.1
15+
- 26.2
16+
- 26.3
17+
- snapshot
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- uses: actions/[email protected]
23+
with:
24+
python-version: '3.6'
25+
architecture: 'x64'
26+
27+
- uses: purcell/setup-emacs@master
28+
env:
29+
with:
30+
version: ${{ matrix.emacs_version }}
31+
32+
- uses: conao3/setup-cask@master
33+
env:
34+
with:
35+
version: 0.8.4
36+
37+
- name: Install Rust toolchain
38+
uses: actions-rs/toolchain@v1
39+
with:
40+
profile: minimal
41+
toolchain: stable
42+
override: true
43+
components: rls, rust-analysis
44+
45+
- name: Install Rust Analyzer
46+
env:
47+
RUST_ANALYZER_VERSION: 2020-04-20
48+
run: |
49+
mkdir -p $GITHUB_WORKSPACE/bin
50+
wget https://github.com/rust-analyzer/rust-analyzer/releases/download/$RUST_ANALYZER_VERSION/rust-analyzer-linux -O $GITHUB_WORKSPACE/bin/rust-analyzer
51+
chmod +x $GITHUB_WORKSPACE/bin/rust-analyzer
52+
export PATH="$PATH:$GITHUB_WORKSPACE/bin"
53+
54+
- name: Run tests
55+
run: 'make ci'

0 commit comments

Comments
 (0)