-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1003 Bytes
/
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
name: test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
shell: bash
env:
GITHUB_API_TOKEN: ${{ secrets.TEST_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Create dvm directory
run: mkdir -p ~/.dvm
- name: Read version caches
id: read_version_caches
uses: actions/cache@v4
with:
key: ${{ runner.os }}-version-caches
path: ~/.dvm/cache
- name: Run test cases
run: |
./test/test_install_version.sh
./test/test_install_version_by_prefix.sh
./test/test_dvmrc_file.sh
./test/test_alias.sh
./test/test_uninstall_version.sh
./test/test_ls_remote.sh
- name: Save version caches
id: store_version_caches
uses: actions/cache@v4
with:
key: ${{ runner.os }}-version-caches
path: ~/.dvm/cache