mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-14 20:41:15 +00:00
22 lines
466 B
YAML
22 lines
466 B
YAML
name: Test
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: npm ci
|
|
- run: |
|
|
mkdir -p ./pr
|
|
echo ${{ github.event.number }} | tee ./pr/number
|
|
npm run all | tee ./pr/all_result
|
|
- uses: actions/upload-artifact@v2
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
with:
|
|
name: all
|
|
path: pr/
|