-
-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (30 loc) · 948 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test
on:
push:
branches:
- main
pull_request_target:
types: [opened, synchronize]
jobs:
readmeExample:
name: "[TEST] README example"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20 # use same as runtime in action.yml
- run: npm ci
- run: npm run build
- name: Get latest release of ${{ github.repository }}
uses: ./
id: stats
with:
id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- run: "echo installations: '${{ steps.stats.outputs.installations }}'"
- run: "echo repositories: '${{ steps.stats.outputs.repositories }}'"
- run: "echo suspended: '${{ steps.stats.outputs.suspended_installations }}'"
- run: >-
echo most popular repositories: '${{
steps.stats.outputs.popular_repositories }}'