Skip to content

WIP ci: build plugins #1

WIP ci: build plugins

WIP ci: build plugins #1

Workflow file for this run

---
name: Parse plugins
on:
pull_request:
branches: [main]
paths:
- '.github/workflows/parse-plugins.yml'
workflow_call:
outputs:
plugins:
value: ${{ jobs.parse.outputs.plugins }}
jobs:
parse:
runs-on: ubuntu-latest
outputs:
plugins: ${{ steps.readfile.outputs.plugins }}
steps:
- uses: actions/checkout@v4
- id: readfile
uses: actions/github-script@v7
with:
result-encoding: string
script: |
const { parse } = require(".github/scripts/parse-plugins.js");
const fs = require("fs");
const s = fs.readFileSync(".github/plugins.json");
const config = parse(JSON.parse(s));
core.setOutput("plugins", config);
test:
if: ${{ github.event_name == 'pull_request' }}
needs: parse
name: Self-testing
runs-on: ubuntu-latest
steps:
- run: |
test $(echo '${{ needs.parse.outputs.plugins }}' | jq '.manylinux_2_28_x86_64[] | select(.plugin == "wasi_crypto") | .test') = "wasiCryptoTests"