Skip to content

fix: ci tests

fix: ci tests #230

Workflow file for this run

# SPDX-FileCopyrightText: 2024 KindSpells Labs S.L.
#
# SPDX-License-Identifier: MIT
name: "Tests"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
merge_group:
branches: [ "main" ]
defaults:
run:
working-directory: "."
jobs:
build:
strategy:
matrix:
deno-version: [ "2.2.0" ]
node-version: [ 18, 20, 22 ]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
pnpm: ["10.4.1+sha512.c753b6c3ad7afa13af388fa6d808035a008e30ea9993f58c6663e2bc5ff21679aa834db094987129aa4d488b86df57f7b634981b2f827cdcacc698cc0cfb88af"]
runs-on: "${{ matrix.os }}"
env:
TURBO_TOKEN: "${{ secrets.TURBO_TOKEN }}"
TURBO_TEAM: "${{ vars.TURBO_TEAM }}"
steps:
- name: "Checkout repository" # v4.2.2
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683"
- name: "Install PNPM" # v4.1.0
uses: "pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda"
with:
version: "${{ matrix.pnpm }}"
- name: "Use Node.js ${{ matrix.node-version }}" # v4.2.0
uses: "actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a"
with:
node-version: "${{ matrix.node-version }}"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: "Use Deno ${{ matrix.deno-version }}" # v2.0.2
uses: "denoland/setup-deno@909cc5acb0fdd60627fb858598759246509fa755"
with:
deno-version: "${{ matrix.deno-version }}"
# All
- name: "(All) Install dependencies"
run: "pnpm install --frozen-lockfile"
- name: "(All) Just run tests (because Windows sucks)"
if: ${{ matrix.os == 'windows-latest' }}
run: "pnpm turbo test"
- name: "(All) Run All Tasks"
if: ${{ matrix.os != 'windows-latest' }}
run: "pnpm turbo all:cov:ci"