add-pr-comment/.github/workflows/integration.yml
Michael Shick 6cf3c34888
update readme to v2 (#56)
* update readme to v2

* disable proxy dogfood test
2022-11-04 18:34:46 -04:00

62 lines
1.2 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
# 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
# - name: Add Comment
# uses: ./
# with:
# message: |
# **It works!**
# proxy-url: https://add-pr-comment-proxy-73luvmwygq-uc.a.run.app
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# repo-token-user-login: "github-actions[bot]"