marocchino-sticky-pull-requ.../.github/workflows/test.yml
dependabot[bot] 8512a4c98b
build(deps): Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 04:54:18 +00:00

48 lines
1.2 KiB
YAML

name: Test
on:
pull_request_target:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v5
- run: yarn install
- run: |
set -o pipefail
mkdir -p ./pr
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
echo "all_result<<$EOF" >> "$GITHUB_ENV"
yarn all >> "$GITHUB_ENV" 2>&1 || true # proceed even if yarn fails
echo >> "$GITHUB_ENV" # yarn all doesn't necessarily produce a newline
echo "$EOF" >> "$GITHUB_ENV"
id: all
- uses: ./
if: ${{ github.event_name == 'pull_request_target' }}
with:
header: All
message: |
<details open>
<summary>Output of yarn all</summary>
```shell
${{ env.all_result }}
```
</details>
- uses: ./
if: ${{ github.event_name == 'pull_request_target' }}
with:
header: All
append: true
hide_details: true
message: |
The build is over.
- name: Lint
run: npm run lint
- name: Format Check
run: npm run format-check