Merge pull request #632 from Hi-Windom/v0.29 #112
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: 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: 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: pnpm install | |
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@v3 |