forked from actions/delete-package-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 872 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
32
33
name: Package and Smoke Test
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
package: # make sure build/ci work properly
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Delete Package Versions Repo
- run: npm install
name: NPM Install
- run: npm run pack
name: Check Format, Lint, Run Unit Tests, Build and Package
smoke-test: # make sure the action works on a clean machine without building
name: Smoke Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout Delete Package Versions Repo
- uses: ./
name: Smoke Test Delete Package Versions Action
with:
package-name: 'com.github.actions.test-package'
num-old-versions-to-delete: 0