Skip to content

style: fix

style: fix #6

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
list:
name: List
runs-on: ubuntu-latest
outputs:
package: ${{ steps.turbo-ls.outputs.package }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Run turbo ls
id: turbo-ls
run: |
ls_output=$(npx turbo ls --output=json)
ls_json=$(echo "$ls_output" | jq -c '.packages.items')
echo "package=$ls_json" >> $GITHUB_OUTPUT
test:
needs: list
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
include: ${{ fromJSON(needs.list.outputs.package) }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install Dependencies
run: pnpm i
- name: Download and extract python-pptx-recipe packages for python-pptx-wasm
if: matrix.name == 'python-pptx-wasm'
run: |
mkdir -p packages/python-pptx-wasm/test/assets
gh release download --repo yikenman/python-pptx-recipe --pattern "packages.tar.gz" --output packages.tar.gz
tar -xzf packages.tar.gz -C packages/python-pptx-wasm/test/assets
env:
GH_TOKEN: ${{ github.token }}
- name: Run Test Parallel
run: pnpm run test --filter=${{ matrix.name }}...
- name: Codecov Parallel
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
flags: ${{ matrix.name }}
directory: ${{ matrix.path }}
handle_no_reports_found: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
results:
needs: test
name: Final Results
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- run: |
result="${{ needs.test.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi