Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "test"

on: pull_request

jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
cache: yarn

- run: yarn

- name: lint
run: |
yarn lint
yarn format-check

- name: build
run: yarn build

- name: Integration test - get token
id: my-app
uses: ./
with:
app_id: ${{ secrets.INTEGRATION_TEST_APP_ID }}
private_key: ${{ secrets.INTEGRATION_TEST_APP_PRIVATE_KEY }}

- name: Integration test - checkout private repo
uses: actions/checkout@v2
with:
repository: getsentry/action-github-app-token-test
token: ${{ steps.my-app.outputs.token }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ yarn

Build the typescript and package it for distribution
```bash
$ yarn build
$ yarn dist
```

## Usage
Expand Down
Loading