Skip to content

Merge pull request #731 from Hi-Windom/v0.34 #147

Merge pull request #731 from Hi-Windom/v0.34

Merge pull request #731 from Hi-Windom/v0.34 #147

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"
package_json: "app/package.json"
steps:
- name: ☄️ Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: 💫 Extract packageManager from package.json
uses: sergeysova/jq-action@v2
id: packageManager
with:
cmd: "jq .packageManager ${{ matrix.string.package_json }} -r"
- name: 💫 Extract actionInstallCommand from package.json
uses: sergeysova/jq-action@v2
id: actionInstallCommand
with:
cmd: "jq .actionInstallCommand ${{ matrix.string.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: app
- name: 🚀 Install dependencies
run: ${{ steps.actionInstallCommand.outputs.value }}
working-directory: app
- name: 💥 Run tests and collect coverage
run: pnpm run test
working-directory: app
- name: 📤 Upload coverage to Codecov
uses: codecov/codecov-action@v4