Skip to content

Merge pull request #631 from Hi-Windom/v0.29 #111

Merge pull request #631 from Hi-Windom/v0.29

Merge pull request #631 from Hi-Windom/v0.29 #111

Workflow file for this run

name: Codecov
on:
push:
branches:
- master
# pull_request_target:
# types: [opened, edited]
jobs:
check-branch:
runs-on: ubuntu-latest
strategy:
matrix:
string:
- repo_name: "Sillot"
repo_owner: "Hi-Windom"
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
path: ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}
- name: Extract packageManager from package.json
uses: sergeysova/jq-action@v2
id: packageManager
with:
cmd: "jq .packageManager ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app/package.json -r"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Node pnpm
run: npm install -g ${{ steps.packageManager.outputs.value }}
working-directory: ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app
- name: Install dependencies
run: pnpm install
working-directory: ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app
- name: Run tests and collect coverage
run: pnpm run test
working-directory: ${{ github.workspace }}/${{ matrix.string.repo_owner }}/${{ matrix.string.repo_name }}/app
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3