-
Notifications
You must be signed in to change notification settings - Fork 23
85 lines (75 loc) · 2.58 KB
/
test.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
name: Run tests
on:
pull_request: ~
push:
branches:
- main
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
neovim_version: ["nightly", "stable"]
steps:
- uses: actions/[email protected]
- name: Set up dependencies
run: |
# ripgrep is a telescope dependency
which rg || {
sudo apt-get install ripgrep
}
# realpath is used to resolve relative paths
which realpath || {
# just fail with an error message if realpath is not found
echo "realpath is not installed, but it should be part of GNU coreutils and included in Ubuntu"
exit 1
}
- name: Compile and install `yazi-fm` from source
uses: baptiste0928/[email protected]
with:
# yazi-fm is the `yazi` executable
crate: yazi-fm
git: https://github.com/sxyazi/yazi
commit:
# https://github.com/sxyazi/yazi/commit/c6687237e17673bfcd9a75f12730ea078faa0262
c6687237e17673bfcd9a75f12730ea078faa0262
- name: Compile and install yazi from source
uses: baptiste0928/[email protected]
with:
# yazi-cli is the `ya` command line interface
crate: yazi-cli
git: https://github.com/sxyazi/yazi
commit:
# https://github.com/sxyazi/yazi/commit/c6687237e17673bfcd9a75f12730ea078faa0262
c6687237e17673bfcd9a75f12730ea078faa0262
- name: Run tests
uses: nvim-neorocks/[email protected]
with:
nvim_version: ${{ matrix.neovim_version }}
luarocks_version: "3.11.1"
- uses: pnpm/[email protected]
- uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: "pnpm"
- run: pnpm install
- name: Install dependencies
uses: cypress-io/github-action@v6
with:
runTests: false
# https://github.com/cypress-io/github-action/blob/bff0ae58f02476fbc4b13229bcaac2767f645b3e/README.md#pnpm-workspaces
- name: Cypress test
uses: cypress-io/github-action@v6
with:
install: false
command: pnpm cy:run
- uses: actions/[email protected]
# add the line below to store screenshots only on failures
# if: failure()
if: failure()
with:
name: cypress-screenshots
path: integration-tests/cypress/screenshots
if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn`