Skip to content

Commit bf85f1c

Browse files
authored
feat: Add CI, fix TS errors, apply prettier (#15)
Add CI tests and fix an existing TS error. Fix eslint and apply prettier formatting.
1 parent 8db06ca commit bf85f1c

File tree

6 files changed

+12588
-14610
lines changed

6 files changed

+12588
-14610
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "test"
2+
3+
on: pull_request
4+
5+
jobs:
6+
build: # make sure build/ci work properly
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- uses: actions/setup-node@v2
12+
with:
13+
cache: yarn
14+
15+
- run: yarn
16+
17+
- name: lint
18+
run: |
19+
yarn lint
20+
yarn format-check
21+
22+
- name: build
23+
run: yarn build
24+
25+
- name: Integration test - get token
26+
id: my-app
27+
uses: ./
28+
with:
29+
app_id: ${{ secrets.INTEGRATION_TEST_APP_ID }}
30+
private_key: ${{ secrets.INTEGRATION_TEST_APP_PRIVATE_KEY }}
31+
32+
- name: Integration test - checkout private repo
33+
uses: actions/checkout@v2
34+
with:
35+
repository: getsentry/action-github-app-token-test
36+
token: ${{ steps.my-app.outputs.token }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $ yarn
1212

1313
Build the typescript and package it for distribution
1414
```bash
15-
$ yarn build
15+
$ yarn dist
1616
```
1717

1818
## Usage

0 commit comments

Comments
 (0)