2021-01-15 20:07:08 +08:00
|
|
|
name: 'Build'
|
2020-04-17 01:58:47 +08:00
|
|
|
on: # rebuild any PRs and main branch changes
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-07-14 04:22:33 +08:00
|
|
|
- main
|
2020-04-17 01:58:47 +08:00
|
|
|
- 'releases/*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build: # make sure build/ci work properly
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-15 20:07:08 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: |
|
2021-03-08 18:56:52 +08:00
|
|
|
npm ci
|
2021-01-15 20:07:08 +08:00
|
|
|
npm run all
|
2020-04-17 01:58:47 +08:00
|
|
|
test: # make sure the action works on a clean machine without building
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-01-15 20:07:08 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ./
|
2021-06-03 21:18:48 +08:00
|
|
|
id: stale
|
2021-01-15 20:07:08 +08:00
|
|
|
with:
|
|
|
|
stale-issue-message: 'This issue is stale'
|
|
|
|
stale-pr-message: 'This PR is stale'
|
|
|
|
debug-only: true
|
2021-06-07 20:56:40 +08:00
|
|
|
- name: Print outputs
|
2021-06-03 21:18:48 +08:00
|
|
|
run: echo ${{ join(steps.stale.outputs.*, ',') }}
|