add-pr-comment/.github/workflows/integration.yml
Michael Shick 3aa992a9b5
Add sticky comment feature and ID based reference. (#61)
* sticky comment feature
* remove unused param
2022-11-07 09:43:48 -08:00

63 lines
1.1 KiB
YAML

name: Integration
on:
pull_request:
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
npm ci
- name: Lint code
run: |
npm run lint
- name: Build action
run: |
npm run build
- name: Run tests
run: |
npm test
dogfood:
name: Dogfood
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
npm ci
- name: Build action
run: |
npm run build
- uses: ./
with:
message: |
**Hello ${{ github.run_number }}**
🌏
!
repo-token: ${{ secrets.GITHUB_TOKEN }}