Unit tests #47
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: Unit tests | |
on: | |
workflow_dispatch: | |
# push: | |
pull_request: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 5 * * SUN' | |
jobs: | |
unit-win: | |
runs-on: windows-latest | |
timeout-minutes: 10 | |
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% --coverage --checkSources | |
env: | |
DENO_ROOT_PATH: ${{ runner.temp }}\deno | |
GITHUB_WORKSPACE: ${{ github.workspace }} | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: jmoalves/levain | |
files: coverage/levain.lcov | |
# unit-nix: | |
# strategy: | |
# matrix: | |
# platform: [ubuntu-latest, macos-latest] | |
# runs-on: ${{ matrix.platform }} | |
# timeout-minutes: 10 | |
# 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} |