Skip to content

fix(tmp): use stdpath('cache') for tmp files #23

fix(tmp): use stdpath('cache') for tmp files

fix(tmp): use stdpath('cache') for tmp files #23

Workflow file for this run

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