fix(tmp): use stdpath('cache')
for tmp files
#23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test on Windows | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test-windows: | |
name: Test Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore cache | |
id: cache-deps | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.tests | |
~\scoop | |
~\AppData\Roaming\LJ4W | |
~\AppData\Roaming\luarocks | |
key: ${{ runner.os }}-tests | |
- name: Check if cache hit | |
if: steps.cache-deps.outputs.cache-hit == 'true' | |
run: echo "GH_CACHE_HIT=true" >> $Env:GITHUB_ENV | |
- name: Install dependencies | |
run: ./scripts/install-ci-test-requirements.ps1 | |
- name: Save cache | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
.tests | |
~\scoop | |
~\AppData\Roaming\LJ4W | |
~\AppData\Roaming\luarocks | |
key: ${{ runner.os }}-tests | |
- name: Run tests | |
run: ./scripts/tests.ps1 |