-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (49 loc) · 1.53 KB
/
Copy pathtests.yml
File metadata and controls
60 lines (49 loc) · 1.53 KB
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
57
58
59
60
name: Tests
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Required to make git describe work
- uses: actions-rust-lang/audit@v1
if: runner.os == 'Linux'
- name: Install neovim and zsh and fish (Linux)
if: runner.os == 'Linux'
run: |
curl -Lo /tmp/nvim-linux-x86_64.tar.gz https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
tar -C /tmp -xzf /tmp/nvim-linux-x86_64.tar.gz
sudo mv /tmp/nvim-linux-x86_64 /opt/nvim
sudo ln -s /opt/nvim/bin/nvim /usr/local/bin/nvim
sudo apt-get install -y zsh fish
- name: Install neovim and fish (macOS)
if: runner.os == 'macOS'
run: brew install neovim fish
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose