Run tests #160
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: Run tests | |
on: | |
workflow_dispatch: | |
#push: | |
pull_request: | |
jobs: | |
test-win: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run tests | |
shell: cmd | |
run: | | |
if exist %DENO_ROOT_PATH% rmdir /q/s %DENO_ROOT_PATH% | |
if not exist %DENO_ROOT_PATH% mkdir %DENO_ROOT_PATH% | |
call %GITHUB_WORKSPACE%\githubScripts\get-deno.cmd %DENO_ROOT_PATH% | |
call %GITHUB_WORKSPACE%\githubScripts\get-extraBin.cmd | |
call %GITHUB_WORKSPACE%\scripts\test.cmd --denoDir %DENO_ROOT_PATH% | |
%DENO_ROOT_PATH%\deno coverage --lcov --output=%GITHUB_WORKSPACE%\coverage\levain.windows.lcov | |
env: | |
DENO_ROOT_PATH: ${{ runner.temp }}\deno | |
GITHUB_WORKSPACE: ${{ github.workspace }} | |
test-nix: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: | | |
denoTemp=$( mktemp -d ) | |
bash $GITHUB_WORKSPACE/githubScripts/get-deno.sh $denoTemp Linux | |
export PATH=${denoTemp}:$PATH | |
cd $GITHUB_WORKSPACE | |
echo bash ./scripts/test.sh | |
rm -rf ${denoTemp} |