chore(deps): bump undici from 5.28.3 to 5.28.4 #38
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
branches: | |
- '**' | |
- '!main' | |
push: | |
branches: | |
- '**' | |
- '!main' | |
jobs: | |
test: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run lint | |
- run: npm test | |
env: | |
GITHUB_REPOSITORY: zentered/issue-forms-body-parser-test | |
- run: npm run build | |
- name: Read an issue content | |
id: read_issue | |
run: | | |
echo "body<<EOF" >> $GITHUB_OUTPUT | |
cat ./test/test-issue-3.md >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
- name: Issue Forms Body Parser With Provided Body | |
id: parse_with_body | |
uses: ./ | |
with: | |
body: ${{ steps.read_issue.outputs.body }} | |
- name: Test input body parsed | |
run: | | |
expected="Event Description" | |
title=$(echo ${{ toJSON(steps.parse_with_body.outputs.data) }} | jq -r '.["event-description"].title') | |
if [[ $title != $expected ]]; then | |
echo "Title \"${title}\" does not match \"${expected}\"" | |
exit 1 | |
fi |