Skip to content

Merge pull request #48 from ghosind/feat/clean-caches #234

Merge pull request #48 from ghosind/feat/clean-caches

Merge pull request #48 from ghosind/feat/clean-caches #234

Workflow file for this run

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_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